/* Vybit landing pages (B12): /hear-every-sale, /team-alerts.
   Used only by www-build/_includes/layouts/landing.njk; no framework CSS is loaded there.
   The hero is a dark ember field that fills the screen, with white text and an orange
   glow behind the phone. Each band below it has its own background colour. */

:root {
    --lp-ink: #1c1c1e;
    --lp-orange: #ff6f00;
    --lp-amber: #ff9d12;
    --lp-ember: #1d0c04;
    --lp-peach: #ffe9d2;
    --lp-stone: #f1ebe4;
    --lp-honey: #ffd9a6;
    --lp-line: #e2d8cd;
    --lp-muted: #5c5650;
    --lp-wrap: 1180px;
}

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

body.lp {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--lp-ink);
    background: var(--lp-ink);
    -webkit-text-size-adjust: 100%;
}

.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp a { color: #a84600; }
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible {
    outline: 3px solid var(--lp-ink);
    outline-offset: 3px;
}

/* --- Sign-up button: orange with ink text everywhere --- */

.lp-cta {
    display: inline-block;
    background: var(--lp-orange);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1;
    padding: 22px 46px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.35);
}
.lp a.lp-cta { color: var(--lp-ink); }
.lp a.lp-cta:hover { background: var(--lp-amber); }
.lp-cta-small { font-size: 1.02rem; padding: 13px 24px; box-shadow: none; }

/* --- Hero: fills the screen --- */

.lp-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(ellipse 62% 78% at 76% 100%, #ff7a00 0%, #e25e00 18%, rgba(168, 62, 0, 0.75) 42%, rgba(92, 31, 0, 0) 76%),
        radial-gradient(ellipse 50% 60% at 0% 0%, rgba(122, 44, 0, 0.55) 0%, rgba(122, 44, 0, 0) 70%),
        linear-gradient(170deg, var(--lp-ember) 0%, #2e1205 55%, #4a1c05 100%);
    overflow: hidden;
}
.lp-hero a:focus-visible, .lp-hero button:focus-visible, .lp-final a:focus-visible { outline-color: #fff; }

.lp-top {
    width: 100%;
    max-width: var(--lp-wrap);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp a.lp-brand { color: #fff; }
.lp-brand img { border-radius: 9px; }
.lp-brand span { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }

.lp-hero-grid {
    flex: 1;
    width: 100%;
    max-width: var(--lp-wrap);
    margin: 0 auto;
    padding: 4px 24px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

/* the bottom padding lifts the copy a little above the centre line */
.lp-pitch { padding-bottom: clamp(40px, 12vh, 130px); }
.lp-pitch h1 {
    font-size: clamp(2.5rem, 5.6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 13ch;
    text-wrap: balance;
}
.lp-sub {
    font-size: clamp(1.2rem, 1.5vw, 1.45rem);
    line-height: 1.45;
    max-width: 34ch;
    color: #f6e9dd;
}
/* .lp p resets margins, so spacing inside the pitch needs the extra class */
.lp-pitch .lp-sub { margin-top: 20px; }
.lp-pitch .lp-cta-main { margin-top: 32px; }

.lp-proof {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #f6e9dd;
}
.lp-proof li { padding-left: 1.4em; position: relative; }
.lp-proof li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--lp-amber); }

/* --- Tap-to-hear demo --- */

/* The whole phone is shown. Its height follows the screen so the hero still fits, and
   everything inside it is sized in em from that height (16px at a 620px phone). */
.lp-demo {
    --lp-ph-h: clamp(400px, calc(100vh - 240px), 700px);
    --lp-ph-h: clamp(400px, calc(100svh - 240px), 700px);
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lp-demo-hint { font-weight: 700; font-size: 1.05rem; }
.lp-demo .lp-demo-hint { margin-bottom: 12px; }

.lp-tries { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lp-try {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--lp-ink);
    background: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.lp-try:hover { background: var(--lp-peach); }
.lp-try[aria-pressed="true"] { background: var(--lp-orange); }

.lp-phone {
    position: relative;
    flex: none;
    height: var(--lp-ph-h);
    aspect-ratio: 300 / 620;
    font-size: calc(var(--lp-ph-h) / 38.75);
    margin-top: 22px;
    padding: 0.69em;
    border-radius: 3.1em;
    /* brushed metal rim, then the black bezel */
    background: linear-gradient(145deg, #8d8d95 0%, #3d3d43 18%, #19191b 50%, #47474d 82%, #9a9aa2 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.22),
        inset 0 0 0 0.31em #0b0b0c,
        0 34px 70px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(255, 122, 0, 0.35);
}
.lp-key { position: absolute; width: 4px; background: linear-gradient(90deg, #2a2a2e, #77777f); border-radius: 2px; }
.lp-key-l1 { left: -3px; top: 7.4em; height: 1.9em; }
.lp-key-l2 { left: -3px; top: 10.25em; height: 3.4em; }
.lp-key-r { right: -3px; top: 9.4em; height: 5.25em; background: linear-gradient(270deg, #2a2a2e, #77777f); }

.lp-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18.75em;
    height: 18.75em;
    margin: -9.375em 0 0 -9.375em;
    border: 3px solid #ffc27a;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.lp-screen {
    position: relative;
    height: 100%;
    border-radius: 2.5em;
    padding: 0.75em;
    color: #fff;
    overflow: hidden;
    /* lock-screen wallpaper */
    background:
        radial-gradient(120% 60% at 15% 8%, #4f6bff 0%, rgba(79, 107, 255, 0) 60%),
        radial-gradient(90% 55% at 95% 30%, #ff4f9a 0%, rgba(255, 79, 154, 0) 62%),
        radial-gradient(130% 70% at 50% 100%, #ffb24a 0%, rgba(255, 178, 74, 0) 66%),
        #1a1242;
}
/* glass glare */
.lp-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 27%);
    pointer-events: none;
}

.lp-status { position: relative; height: 1.9em; display: flex; align-items: center; justify-content: flex-end; padding: 0 0.75em; }
.lp-island { position: absolute; left: 50%; top: 0.06em; width: 5.25em; height: 1.62em; margin-left: -2.625em; background: #000; border-radius: 0.9em; }
.lp-status-icons { display: flex; align-items: center; gap: 0.3em; }
.lp-status-icons svg { fill: currentColor; display: block; height: 0.69em; width: auto; }

.lp-date { text-align: center; font-size: 1em; font-weight: 600; margin-top: 1.4em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.lp-clock {
    text-align: center;
    font-size: 4.6em;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.lp-note {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.7em;
    align-items: flex-start;
    margin-top: 1.5em;
    padding: 0.85em;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    color: var(--lp-ink);
    border-radius: 1.4em;
    font-size: 0.9em;
    line-height: 1.3;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.lp-note img { width: 2.5em; height: 2.5em; border-radius: 0.6em; flex: none; }
.lp-note > div { flex: 1; min-width: 0; }
.lp-note-app { font-size: 0.87em; color: #4a4540; display: flex; justify-content: space-between; gap: 0.5em; }
.lp-note-title { font-weight: 700; }

.lp-note-empty {
    margin-top: 1.5em;
    padding: 1em 0.85em;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px dashed rgba(255, 255, 255, 0.6);
    border-radius: 1.4em;
    font-size: 0.9em;
    line-height: 1.35;
    text-align: center;
}
.lp-phone.is-idle .lp-note { display: none; }
.lp-phone:not(.is-idle) .lp-note-empty { display: none; }

/* lock-screen furniture at the bottom of the screen */
.lp-lock {
    position: absolute;
    bottom: 2.4em;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    background: rgba(20, 16, 40, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-lock-l { left: 1.9em; }
.lp-lock-r { right: 1.9em; }
.lp-lock svg { width: 1.35em; height: 1.35em; fill: #fff; }
.lp-home { position: absolute; left: 50%; bottom: 0.55em; width: 36%; height: 0.31em; margin-left: -18%; border-radius: 0.2em; background: rgba(255, 255, 255, 0.9); }

.lp-phone.is-ringing .lp-note { animation: lp-drop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.lp-phone.is-ringing .lp-ring { animation: lp-ring 1.1s ease-out both; }
.lp-phone.is-ringing .lp-ring-2 { animation-delay: 0.25s; }

@keyframes lp-drop {
    from { transform: translateY(-160%) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes lp-ring {
    from { transform: scale(0.8); opacity: 0.9; }
    to { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-phone.is-ringing .lp-note, .lp-phone.is-ringing .lp-ring { animation: none; }
}

/* --- Bands below the hero: each has its own colour, content runs the full box width --- */

.lp-band { padding: 80px 24px; }
.lp-wrap { max-width: var(--lp-wrap); margin: 0 auto; }
.lp-band h2, .lp-final h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.lp-band h2 { margin-bottom: 32px; }
.lp-band h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.lp-band .lp-lede { font-size: 1.15rem; margin: -16px 0 32px; }

.lp-band-steps { background: var(--lp-peach); }
.lp-band-tiles { background: var(--lp-ink); color: #fff; }
.lp-band-plans { background: var(--lp-stone); }
.lp-band-prose { background: #fff; }
.lp-band-faq { background: var(--lp-honey); }

/* Steps: a real sequence, so the cards are numbered */
.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: lp-step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.lp-steps li {
    counter-increment: lp-step;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 14px;
    align-items: center;
    align-content: start;
    background: #fff;
    border-radius: 24px;
    padding: 28px 28px 30px;
    box-shadow: 0 2px 0 rgba(120, 60, 0, 0.12), 0 18px 36px rgba(120, 60, 0, 0.1);
}
/* the number sits to the left of the title; the text runs under both */
.lp-steps li::before {
    content: counter(lp-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lp-orange);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.lp-steps p { grid-column: 1 / -1; color: #3a3632; }

/* Bento grid: tiles differ because their jobs differ */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-tile { border-radius: 24px; padding: 28px 28px 30px; color: var(--lp-ink); }
.lp-tile p { margin-top: 8px; }
.lp-span-2 { grid-column: span 2; }
.lp-span-3 { grid-column: span 3; }
.lp-span-4 { grid-column: span 4; }
.lp-span-6 { grid-column: span 6; }
.lp-tile-plain { background: #fff; }
.lp-tile-tint { background: var(--lp-peach); }
.lp-tile-orange { background: linear-gradient(135deg, var(--lp-amber) 0%, var(--lp-orange) 100%); }
.lp-tile-orange h3 { font-size: 1.7rem; letter-spacing: -0.02em; }
.lp-tile-orange p { font-size: 1.1rem; }
.lp-tile-ink { background: #2c2c30; color: #fff; box-shadow: inset 0 0 0 1px #46464c; }

.lp-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { background: var(--lp-peach); border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: 0.96rem; }
.lp-links { list-style: none; margin: 12px 0 0; padding: 0; }
.lp-links li { margin-top: 8px; }
.lp-links a { font-weight: 600; }
.lp .lp-tile-ink a { color: #ffbe73; }
.lp .lp-tile-ink a:focus-visible { outline-color: #fff; }

/* Plans: one column per plan, with one figure per person who hears each alert */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-plan { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.lp-people {
    display: grid;
    grid-template-columns: repeat(var(--lp-cols, 3), max-content);
    justify-content: center;
    align-content: center;
    gap: 6px;
    height: 150px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--lp-stone);
}
.lp-people svg { display: block; width: var(--lp-size, 40px); height: var(--lp-size, 40px); fill: var(--lp-ink); }
.lp-people svg:first-child { fill: var(--lp-orange); }
.lp-plan-rate { color: var(--lp-muted); margin-top: 2px; }
.lp-plan .lp-plan-name { margin-top: 18px; font-size: 1.05rem; }
.lp-plan-name strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-right: 6px; }
.lp-plan-facts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--lp-line); }
.lp-plan-facts li { padding-left: 1.4em; position: relative; margin-top: 4px; }
.lp-plan-facts li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--lp-orange); }
.lp-band .lp-plans-more { margin-top: 24px; font-size: 1.05rem; }

/* Questions */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { background: #fff; border-radius: 18px; padding: 0 24px; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 20px 36px 20px 0; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { padding: 0 0 22px; }

/* Closing band: the ember field again */
.lp-final {
    padding: 88px 24px 92px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 90% at 50% 120%, #ff7a00 0%, rgba(214, 86, 0, 0.7) 35%, rgba(92, 31, 0, 0) 75%),
        linear-gradient(180deg, var(--lp-ember) 0%, #3a1604 100%);
}
.lp-final .lp-cta-main { margin-top: 28px; }
.lp-final p { margin-top: 18px; color: #f6e9dd; }

.lp-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    justify-content: center;
    padding: 22px 24px 28px;
    font-size: 0.88rem;
    color: #b9b2ab;
    background: var(--lp-ink);
}
.lp .lp-foot a { color: #b9b2ab; }
.lp .lp-foot a:focus-visible { outline-color: #fff; }

/* Sticky sign-up bar, small screens only */
.lp-sticky { display: none; }

@media (max-width: 900px) {
    .lp-hero {
        background:
            radial-gradient(ellipse 110% 46% at 50% 100%, #ff7a00 0%, #e25e00 20%, rgba(168, 62, 0, 0.75) 48%, rgba(92, 31, 0, 0) 82%),
            linear-gradient(180deg, var(--lp-ember) 0%, #2e1205 60%, #4a1c05 100%);
    }
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; padding-bottom: 44px; align-items: start; }
    .lp-pitch { padding-bottom: 30px; }
    .lp-demo { --lp-ph-h: 480px; }
    .lp-pitch h1 { max-width: 16ch; }
    .lp-steps, .lp-plans { grid-template-columns: minmax(0, 1fr); }
    .lp-bento { grid-template-columns: minmax(0, 1fr); }
    .lp-span-2, .lp-span-3, .lp-span-4, .lp-span-6 { grid-column: auto; }
    .lp-band { padding: 56px 20px; }
    .lp-final { padding: 64px 20px 72px; }
    .lp-people { height: 136px; }
}

@media (max-width: 640px) {
    body.lp { font-size: 16px; }
    .lp-top { padding: 12px 20px; }
    .lp-hero-grid { padding-left: 20px; padding-right: 20px; }
    .lp-top .lp-cta-small { display: none; }
    .lp-pitch h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
    .lp-sub { font-size: 1.1rem; }
    .lp-pitch .lp-sub { margin-top: 14px; }
    .lp-pitch .lp-cta-main { display: block; text-align: center; margin-top: 22px; }
    .lp-proof { margin-top: 16px; font-size: 0.9rem; gap: 4px 16px; }
    .lp-pitch { padding-bottom: 22px; }
    .lp-try { font-size: 0.9rem; padding: 9px 13px; }
    .lp-demo .lp-demo-hint { margin-bottom: 10px; }
    .lp-demo { --lp-ph-h: 440px; }
    .lp-phone { margin-top: 20px; }
    .lp-foot { padding-bottom: 96px; }
    .lp-sticky {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--lp-ink);
        transform: translateY(110%);
        transition: transform 0.2s ease;
        z-index: 10;
    }
    .lp-sticky.is-on { transform: translateY(0); }
    .lp-sticky .lp-cta { display: block; text-align: center; font-size: 1.15rem; padding: 16px 20px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-sticky { transition: none; }
}
/* narrow phones: drop the speaker icons so the three alert buttons share one row */
@media (max-width: 420px) {
    .lp-try svg { display: none; }
    .lp-tries { flex-wrap: nowrap; gap: 6px; }
    .lp-try { padding: 9px 12px; white-space: nowrap; }
}
