/* AbilityView marketing landing page */

:root {
    --lp-accent: #6058f8;
    --lp-accent-hover: #4e46e8;
    --lp-text: #111111;
    --lp-muted: #4b4b4b;
    --lp-border: #d9d9d9;
    --lp-dark: #1f1f1f;
    --lp-dark-2: #2a2a2a;
    --lp-max: 1120px;
    --lp-radius: 6px;
    --lp-nav-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--lp-nav-h);
}

body.lp-body {
    margin: 0;
    color: var(--lp-text);
    background: #fff;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.lp-wrap {
    width: min(var(--lp-max), calc(100% - 48px));
    margin-inline: auto;
}

.lp-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: 8px 12px;
    z-index: 100;
}

.lp-skip:focus {
    left: 12px;
    top: 12px;
}

/* Wordmark */
.lp-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
}

.lp-logo {
    text-decoration: none;
    flex-shrink: 0;
}

.lp-ability {
    color: #111;
}

.lp-view {
    color: var(--lp-accent);
    display: inline-flex;
    align-items: baseline;
}

.lp-v {
    display: inline-block;
    width: 0.78em;
    height: 1.12em;
    margin: 0 0.02em 0 -0.04em;
    background: currentColor;
    clip-path: polygon(8% 42%, 38% 100%, 100% 0, 78% 0, 38% 72%, 22% 42%);
    vertical-align: -0.18em;
}

.lp-footer .lp-ability {
    color: #fff;
}

/* Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--lp-radius);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lp-btn-primary {
    background: var(--lp-accent);
    color: #fff;
}

.lp-btn-primary:hover {
    background: var(--lp-accent-hover);
}

.lp-btn-ghost {
    background: #fff;
    color: #111;
    border-color: #111;
}

.lp-btn-ghost:hover {
    background: #f4f4f4;
}

.lp-btn-login {
    background: transparent;
    color: #222;
    border-color: #222;
    padding: 9px 18px;
}

.lp-btn-login:hover {
    background: #f6f6f6;
}

/* Nav */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--lp-nav-h);
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.lp-nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-links a,
.lp-nav-links summary {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}

.lp-nav-links summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lp-nav-links summary::-webkit-details-marker {
    display: none;
}

.lp-nav-links summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.lp-drop {
    position: relative;
}

.lp-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
    padding: 8px 0;
    display: none;
}

.lp-drop[open] .lp-drop-menu,
.lp-drop:hover .lp-drop-menu {
    display: block;
}

.lp-drop-menu a {
    display: block;
    padding: 8px 14px;
    white-space: nowrap;
}

.lp-drop-menu a:hover {
    background: #f6f6fb;
}

.lp-nav-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
}

.lp-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-nav-checkbox,
.lp-nav-burger {
    display: none;
}

/* Hero */
.lp-hero {
    position: relative;
    min-height: 640px;
    color: #fff;
    background-color: #1a1a1a;
    background-image: var(--lp-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.46) 50%, rgba(0, 0, 0, 0.28) 100%);
}

.lp-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: center;
    padding: 40px 0 48px;
    min-height: 640px;
}

.lp-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.lp-hero p {
    margin: 0 0 24px;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.lp-phones {
    position: relative;
    min-height: 580px;
    align-self: stretch;
}

.lp-phone {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.lp-phone-chat {
    right: -2%;
    top: 2%;
    width: 76%;
    z-index: 1;
}

.lp-phone-tasks {
    left: -2%;
    top: 10%;
    width: 72%;
    z-index: 2;
}

/* Feature rows */
.lp-section {
    padding: 88px 0;
}

.lp-section--tight {
    padding-top: 0;
}

.lp-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.lp-split--flip {
    grid-template-columns: 1.15fr 1fr;
}

.lp-kicker h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.lp-kicker p {
    margin: 0 0 24px;
    color: var(--lp-muted);
    font-size: 1.05rem;
    max-width: 34rem;
}

.lp-shot,
.lp-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
}

.lp-shot img,
.lp-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.lp-photo img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

/* Why */
.lp-why {
    position: relative;
    text-align: center;
    padding: 48px 0 96px;
    overflow: hidden;
}

.lp-why h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.lp-why p {
    margin: 0 auto;
    max-width: 46rem;
    color: var(--lp-muted);
    font-size: 1.05rem;
}

.lp-why-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lp-why-mark {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #d7d4ff;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.85;
}

/* Records */
.lp-records {
    position: relative;
    color: #fff;
    background-color: #1a1a1a;
    background-image: var(--lp-records-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.lp-records::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.72);
}

.lp-records-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 88px 0;
}

.lp-records h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.lp-records p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 34rem;
}

.lp-video {
    position: relative;
    background: #111;
    border-radius: 8px;
    min-height: 280px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.lp-video-el {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    background: #111;
    border-radius: inherit;
}

.lp-play {
    position: absolute;
    z-index: 2;
    width: 72px;
    height: 72px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(180, 180, 180, 0.35);
    color: #cfcfcf;
    cursor: default;
    display: grid;
    place-items: center;
}

.lp-play:not([disabled]) {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}

.lp-play:not([disabled]):hover {
    background: #fff;
}

.lp-play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.lp-video.is-playing .lp-play,
.lp-glance-card.is-playing .lp-play {
    display: none;
}

/* Glance */
.lp-glance {
    background: var(--lp-dark);
    color: #fff;
    padding: 72px 0 88px;
    text-align: center;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent 0 42px,
            rgba(120, 130, 255, 0.05) 42px 44px
        );
}

.lp-glance h2 {
    margin: 0 0 36px;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.lp-glance-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    min-height: 280px;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.lp-glance-card .lp-video-el {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    justify-self: stretch;
}

.lp-glance-card .lp-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(160, 160, 160, 0.35);
}

.lp-glance-card .lp-play:not([disabled]) {
    background: rgba(255, 255, 255, 0.9);
}

/* Contact */
.lp-contact {
    padding: 88px 0 96px;
}

.lp-contact-head {
    text-align: center;
    margin-bottom: 40px;
}

.lp-contact-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.lp-contact-head p {
    margin: 0 auto;
    max-width: 40rem;
    color: var(--lp-muted);
}

.lp-form {
    max-width: 820px;
    margin: 0 auto;
}

.lp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-field-full {
    grid-column: 1 / -1;
}

.lp-field span,
.lp-goals-legend {
    font-weight: 700;
    font-size: 0.95rem;
}

.lp-field input:not([type="checkbox"]),
.lp-field select,
.lp-field textarea {
    font: inherit;
    border: 1px solid var(--lp-border);
    border-radius: 4px;
    padding: 10px 12px;
    background: #fff;
    color: var(--lp-text);
    width: 100%;
}

.lp-field textarea {
    min-height: 120px;
    resize: vertical;
}

.lp-goals-set {
    border: 0;
    padding: 0;
    margin: 0;
}

.lp-goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin-top: 8px;
}

.lp-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #222;
}

.lp-check input {
    margin-top: 3px;
    width: auto;
    accent-color: var(--lp-accent);
    flex-shrink: 0;
}

.lp-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.lp-alert {
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 12px 14px;
    border-radius: 6px;
}

.lp-alert-ok {
    background: #ecfdf5;
    color: #065f46;
}

.lp-alert-err {
    background: #fef2f2;
    color: #991b1b;
}

/* Footer */
.lp-footer {
    background: var(--lp-dark);
    color: #fff;
    padding: 56px 0 28px;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent 0 46px,
            rgba(120, 130, 255, 0.06) 46px 48px
        );
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr 0.7fr;
    gap: 40px;
}

.lp-footer-mission {
    margin: 16px 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 22rem;
}

.lp-footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.lp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-footer li + li {
    margin-top: 8px;
}

.lp-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.lp-footer a:hover {
    text-decoration: underline;
}

.lp-footer-disabled {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.lp-copy {
    margin: 36px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .lp-nav-burger {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        background: #fff;
    }

    .lp-nav-burger span,
    .lp-nav-burger span::before,
    .lp-nav-burger span::after {
        display: block;
        width: 18px;
        height: 2px;
        background: #111;
        position: relative;
    }

    .lp-nav-burger span::before,
    .lp-nav-burger span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .lp-nav-burger span::before { top: -6px; }
    .lp-nav-burger span::after { top: 6px; }

    .lp-nav-panel {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--lp-nav-h);
        background: #fff;
        border-bottom: 1px solid #ececec;
        padding: 16px 24px 20px;
        display: none;
        flex-direction: column;
        gap: 16px;
    }

    .lp-nav-checkbox:checked ~ .lp-nav-panel {
        display: flex;
    }

    .lp-nav-inner {
        position: relative;
    }

    .lp-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .lp-nav-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-drop-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 6px 0 0 12px;
    }

    .lp-hero-inner,
    .lp-split,
    .lp-split--flip,
    .lp-records-inner,
    .lp-form-grid,
    .lp-goals,
    .lp-footer-grid {
        grid-template-columns: 1fr;
    }

    .lp-phones {
        min-height: 400px;
        order: -1;
    }

    .lp-phone-tasks {
        left: 0;
        top: 16%;
        width: 72%;
    }

    .lp-phone-chat {
        right: -6%;
        top: 0;
        width: 70%;
    }

    .lp-hero-inner {
        padding: 32px 0 40px;
    }

    .lp-section,
    .lp-records-inner,
    .lp-contact {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .lp-form-actions {
        justify-content: stretch;
    }

    .lp-form-actions .lp-btn {
        width: 100%;
    }
}
