/* Public Medkart landing page */
.landing-body {
    --landing-gutter: clamp(20px, 5vw, 72px);
    --landing-section-space: clamp(60px, 7.3vw, 112px);
    background: #fff;
}

.landing-body .landing-main {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.landing-body .landing-inner {
    width: min(100% - var(--landing-gutter) * 2, 1220px);
    margin-inline: auto;
}

.landing-body .landing-main :is(h1, h2, h3, p) {
    margin: 0;
}

.landing-body .landing-main svg,
.landing-footer svg {
    flex: none;
    width: 19px;
    height: 19px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(38px, 5vw, 80px);
    padding-block: clamp(50px, 6.2vw, 94px);
}

.landing-main .landing-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.45;
    text-transform: uppercase;
}

.landing-kicker > span {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px var(--mint);
}

.landing-body .landing-copy h1 {
    margin-block: 20px;
    color: var(--dark);
    font-size: clamp(3rem, 5vw, 4.7rem);
    font-weight: 760;
    letter-spacing: -.07em;
    line-height: 1.05;
    text-wrap: balance;
}

.landing-copy h1 em {
    display: block;
    color: var(--primary);
    font-style: normal;
}

.landing-main .landing-lead {
    max-width: 33rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.55vw, 1.225rem);
    line-height: 1.63;
    text-wrap: pretty;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.landing-body .landing-actions > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 51px;
    padding: 12px 17px;
}

.landing-body .landing-actions .ghost {
    background: #fff;
    border-color: var(--line);
}

.landing-body .landing-actions .ghost:hover {
    background: var(--bg);
}

.landing-body .landing-main .landing-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 23px;
    color: var(--muted);
    font-size: .82rem;
}

.landing-body .landing-note svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

.landing-visual {
    position: relative;
    min-height: clamp(430px, 40vw, 547px);
    isolation: isolate;
    perspective: 950px;
    perspective-origin: 35% 55%;
}

.landing-photo {
    position: absolute;
    inset: 0 0 0 clamp(20px, 4vw, 52px);
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(140deg, #eff3f617, #1d262d10),
        
        #e5eaee;
}

.landing-photo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid #ffffff45;
    content: "";
    pointer-events: none;
}

.landing-preview-tilt {
    position: absolute;
    bottom: clamp(23px, 4.1vw, 58px);
    left: 8px;
    width: min(78%, 318px);
    transform-style: preserve-3d;
}

.landing-preview-depth {
    --preview-tilt-x: 12deg;
    --preview-tilt-y: -18deg;
    --preview-tilt-z: -5deg;
    position: relative;
    transform: rotateX(var(--preview-tilt-x)) rotateY(var(--preview-tilt-y)) rotateZ(var(--preview-tilt-z));
    transform-style: preserve-3d;
    animation: medkart-preview-enter 3.8s cubic-bezier(.28, .7, .28, 1);
}

.landing-preview-depth::before,
.landing-preview-depth::after {
    position: absolute;
    inset: 0;
    border-radius: 19px;
    content: "";
}

.landing-preview-depth::before {
    border: 1px solid #bac8d2;
    background: linear-gradient(150deg, #ebf0f4 28%, #99aebe);
    transform: translate3d(5px, 7px, 0);
}

.landing-preview-depth::after {
    box-shadow: 16px 24px 36px #1d262d47;
    transform: translate3d(12px, 22px, -22px);
}

.landing-preview {
    position: relative;
    padding: 17px;
    border: 1px solid #edf0f3;
    border-radius: 19px;
    background: linear-gradient(164deg, #fff 18%, #f8fafb);
    box-shadow: 0 10px 20px #1d262d24, inset 0 1px #fff;
    transform: translateZ(13px);
    transform-style: preserve-3d;
}

@keyframes medkart-preview-enter {
    from {
        transform: translate3d(4px, 16px, -14px)
            rotateX(calc(var(--preview-tilt-x) + 7deg))
            rotateY(calc(var(--preview-tilt-y) - 12deg))
            rotateZ(calc(var(--preview-tilt-z) - 2deg));
    }

    54% {
        transform: translate3d(0, -9px, 19px)
            rotateX(calc(var(--preview-tilt-x) - 5deg))
            rotateY(calc(var(--preview-tilt-y) + 10deg))
            rotateZ(calc(var(--preview-tilt-z) + 2deg));
    }

    to {
        transform: rotateX(var(--preview-tilt-x)) rotateY(var(--preview-tilt-y)) rotateZ(var(--preview-tilt-z));
    }
}

.preview-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
}

.preview-heading small,
.preview-heading strong {
    display: block;
    line-height: 1.34;
}

.preview-heading small {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 650;
}

.preview-heading strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: .99rem;
}

.landing-main .landing-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: none;
    place-items: center;
    border-radius: 13px;
}

.landing-main .landing-icon > svg {
    width: 22px;
    height: 22px;
}

.landing-main .landing-icon--blue {
    background: var(--primary-soft);
    color: var(--primary);
}

.landing-main .landing-icon--mint {
    background: var(--mint);
    color: var(--teal);
}

.landing-main .landing-icon--lilac {
    background: #f1f4f6;
    color: #627684;
}

.preview-record {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfc;
}

.preview-record strong {
    color: var(--ink);
    font-size: .67rem;
}

.preview-record > span {
    width: 91%;
    height: 4px;
    border-radius: 4px;
    background: #e1e7eb;
}

.preview-record > span:last-child {
    width: 52%;
}

.preview-voice {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--mint);
    box-shadow: 0 6px 12px #087c6918;
    color: var(--teal);
    font-size: .68rem;
    transform: translateZ(10px);
}

.landing-body .preview-voice > svg {
    width: 15px;
    height: 15px;
}

.preview-wave {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    height: 20px;
    margin-left: auto;
}

.preview-wave > i {
    width: 2px;
    height: 38%;
    border-radius: 4px;
    background: currentColor;
}

.preview-wave > i:nth-child(even) {
    height: 69%;
}

.preview-wave > i:nth-child(3n) {
    height: 94%;
}

.landing-band {
    background: var(--bg);
    border-block: 1px solid #eceff1;
}

.landing-main [id] {
    scroll-margin-top: 6rem;
}

.landing-section {
    padding-block: var(--landing-section-space);
}

.landing-heading {
    margin-bottom: clamp(25px, 3vw, 40px);
}

.landing-body .landing-heading h2 {
    margin-top: 9px;
    color: inherit;
    font-size: clamp(2.08rem, 4vw, 3.45rem);
    font-weight: 740;
    line-height: 1.09;
    letter-spacing: -.055em;
    text-wrap: balance;
}

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

.landing-feature {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    min-height: 218px;
    padding: clamp(21px, 2.4vw, 32px);
    border: 1px solid #e6eaed;
    border-radius: 20px;
    background: #fff;
}

.landing-body .landing-feature h3 {
    margin-top: 17px;
    color: var(--ink);
    font-size: clamp(1.14rem, 1.6vw, 1.35rem);
    font-weight: 725;
    letter-spacing: -.03em;
    line-height: 1.22;
}

.landing-body .landing-feature p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.landing-feature small {
    margin-top: auto;
    padding-top: 20px;
    color: var(--primary);
    font-size: .74rem;
    font-weight: 700;
}

.landing-flow {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5.6vw, 75px);
    border-radius: 28px;
    background: radial-gradient(ellipse at 100% 0%, #435766, transparent 64%), var(--dark);
    color: #fff;
}

.landing-flow .landing-kicker {
    color: #cbd7e0;
}

.landing-flow ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 42px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-flow li {
    min-width: 0;
    padding-top: 23px;
    border-top: 1px solid #acbecb5b;
}

.landing-flow li > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 19px;
    border: 1px solid #acbecb5b;
    border-radius: 50%;
    background: #6978833d;
    color: #e4eaef;
    font-size: .85rem;
    font-weight: 700;
}

.landing-body .landing-flow h3 {
    color: #fff;
    font-size: 1.12rem;
}

.landing-body .landing-flow li p {
    margin-top: 6px;
    color: #d7dfe4;
    font-size: .9rem;
    line-height: 1.55;
}

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

.landing-plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(22px, 2.6vw, 36px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.landing-plan--featured {
    border-color: #b5c6d3;
    background: #fbfcfc;
    box-shadow: 0 12px 31px #5d829d11, inset 0 3px var(--primary);
}

.landing-body .landing-plan h3 {
    color: var(--ink);
    font-size: 1.15rem;
}

.landing-price {
    margin-top: 13px;
    color: var(--ink);
    font-size: clamp(1.7rem, 2.9vw, 2.55rem);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}

.landing-price small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 0;
}

.landing-body .landing-plan > p {
    margin-top: 6px;
    color: var(--muted);
    font-size: .88rem;
}

.landing-plan ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 26px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: .85rem;
    list-style: none;
}

.landing-plan li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.landing-body .landing-plan li svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--teal);
}

.landing-body .landing-plan > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    min-height: 46px;
}

.landing-faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 35px clamp(35px, 6vw, 90px);
}

.landing-questions {
    border-top: 1px solid var(--line);
}

.landing-questions details {
    border-bottom: 1px solid var(--line);
}

.landing-questions summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 61px;
    padding: 13px 0;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.landing-questions summary::-webkit-details-marker {
    display: none;
}

.landing-questions summary::after {
    display: grid;
    flex: none;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    content: "+";
    font-weight: 500;
}

.landing-questions details[open] summary::after {
    content: "−";
}

.landing-body .landing-questions details p {
    padding: 0 36px 17px 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.landing-footer {
    padding: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
}

.landing-footer .landing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    min-height: 90px;
    padding-block: 13px;
    font-size: .84rem;
}

.landing-footer img {
    display: block;
    width: 124px;
    height: auto;
}

.landing-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

.landing-footer-link:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

@media (max-width: 1020px) {
    .landing-hero {
        gap: clamp(24px, 4vw, 45px);
    }

    .landing-body .landing-copy h1 {
        font-size: clamp(2.8rem, 6vw, 4rem);
    }

    .landing-visual {
        min-height: clamp(365px, 48vw, 470px);
    }
}

@media (max-width: 760px) {
    .landing-body {
        --landing-section-space: 60px;
    }

    .landing-hero,
    .landing-faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero {
        padding-block: clamp(42px, 8vw, 60px);
    }

    .landing-body .landing-copy h1 {
        max-width: 15ch;
        font-size: clamp(2.7rem, 8.2vw, 4.2rem);
        text-wrap: initial;
    }

    .landing-photo {
        left: clamp(16px, 4vw, 34px);
    }

    .landing-preview-tilt {
        bottom: 22px;
    }

    .landing-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-faq .landing-heading {
        margin-bottom: 0;
    }
}

@media (max-width: 500px) {
    .landing-flow ol,
    .landing-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-feature {
        min-height: 0;
    }

    .landing-flow li {
        padding-top: 17px;
    }

    .landing-flow li > span {
        margin-bottom: 11px;
    }

    .landing-visual {
        min-height: clamp(290px, 91vw, 390px);
    }

    .landing-photo {
        border-radius: 23px;
    }

    .landing-preview-depth {
        --preview-tilt-x: 8deg;
        --preview-tilt-y: -10deg;
        --preview-tilt-z: -4deg;
    }

    .landing-preview {
        padding: 13px;
    }

    .landing-footer .landing-inner > span {
        order: 3;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-preview-depth {
        animation: none;
    }
}
