﻿/* Homepage pitch cards — loaded after site.css on the home page only.
   Production serves site.css with Cache-Control: immutable (?v=ASSET_VERSION).
   Live-replace deploys often keep the same ASSET_VERSION, so browsers keep old
   stretch rules from site.css. This file is a new URL and wins in cascade. */
.pitch-head h2 {
    max-width: 18ch;
    margin-inline: auto;
}
.pitch-head h2.sketch-round {
    max-width: min(22ch, 100%);
}
.pitch-head .accent-line {
    color: var(--accent);
}
/* Soft colour washes behind the four pitch cards. The panels below are frosted
   glass, so they need something to pick up: over a flat near-white page a blur
   and a translucent fill are invisible. These washes are what the glass tints
   and softens as the cards sit on them. */
.pitch-section {
    position: relative;
    isolation: isolate;
}
.pitch-section::before {
    content: "";
    position: absolute;
    inset: 2% 0 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle 200px at 5% 52%, rgba(124, 108, 255, 0.30) 0 62%, rgba(124, 108, 255, 0) 100%),
        radial-gradient(circle 170px at 95% 46%, rgba(96, 165, 250, 0.26) 0 60%, rgba(96, 165, 250, 0) 100%),
        radial-gradient(circle 230px at 8% 84%, rgba(196, 181, 253, 0.34) 0 60%, rgba(196, 181, 253, 0) 100%),
        radial-gradient(circle 240px at 92% 82%, rgba(167, 139, 250, 0.34) 0 62%, rgba(167, 139, 250, 0) 100%),
        radial-gradient(440px 320px at 8% 26%, rgba(124, 108, 255, 0.30), rgba(124, 108, 255, 0) 72%),
        radial-gradient(480px 340px at 92% 16%, rgba(96, 165, 250, 0.26), rgba(96, 165, 250, 0) 74%),
        radial-gradient(600px 400px at 72% 80%, rgba(196, 181, 253, 0.52), rgba(196, 181, 253, 0) 76%),
        radial-gradient(460px 340px at 18% 74%, rgba(255, 205, 224, 0.44), rgba(255, 205, 224, 0) 74%),
        radial-gradient(520px 360px at 46% 44%, rgba(167, 199, 255, 0.22), rgba(167, 199, 255, 0) 76%);
}

.pitch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
/* Frosted glass: a translucent fill plus backdrop blur over the washes above.
   The hairline is white rather than the old grey so the edge reads as a lit
   pane, with a faint violet ring to keep it defined on a pale page. */
.pitch-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 8px 20px;
    align-items: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-card);
    padding: 28px 24px 24px;
    box-shadow:
        0 0 0 1px rgba(124, 108, 255, 0.06),
        0 26px 50px rgba(92, 72, 170, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    text-align: left;
    overflow: hidden;
}
/* Without backdrop blur a translucent card only looks washed out, so fall back to
   an opaque pane and keep the lit edge. */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
    .pitch-card { background: linear-gradient(150deg, #ffffff 0%, #fdfcff 100%); }
}
.pitch-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pitch-step span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0;
}
.pitch-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pitch-card-analytics {
    display: block;
    padding: 26px 22px 22px;
    overflow: hidden;
}
.pitch-card-showcase .pitch-analytics-copy .pitch-perks,
.pitch-card-superfast .pitch-analytics-copy .pitch-perks {
    margin-bottom: 16px;
}
.pitch-visual-showcase {
    background: radial-gradient(ellipse at 58% 42%, rgba(216, 204, 255, 0.38), transparent 72%);
}
.pitch-visual-superfast {
    background: radial-gradient(ellipse at 55% 40%, rgba(216, 204, 255, 0.42), transparent 70%);
}
.pitch-superfast-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pitch-superfast-img {
    object-fit: contain !important;
    object-position: center center !important;
}
.pitch-showcase-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pitch-showcase-img {
    object-fit: contain !important;
    object-position: center center !important;
}
.pitch-card-sharing {
    display: block;
    padding: 24px 24px 0;
    overflow: hidden;
}
.pitch-analytics-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 20px;
    align-items: center;
    min-height: 0;
}
.pitch-sharing-body {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    gap: 0;
}
.pitch-analytics-copy .pitch-perks {
    margin-bottom: 16px;
}
.pitch-sharing-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
}
.pitch-sharing-copy .pitch-perks {
    margin-bottom: 10px;
}
.pitch-sharing-copy > p:not(.pitch-sharing-tagline) {
    margin-bottom: 10px;
}
.pitch-analytics-tagline,
.pitch-sharing-tagline {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(124, 108, 255, 0.14);
    color: var(--ink);
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.3;
    text-align: left;
}
.pitch-analytics-tagline em,
.pitch-sharing-tagline em {
    color: var(--accent);
    font-style: normal;
}
.pitch-sharing-tagline {
    padding-top: 10px;
}
.pitch-visual-analytics {
    min-width: 0;
    padding: 0;
    display: flex;
    background: none;
}
.pitch-visual-sharing {
    min-width: 0;
    margin: 4px -24px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-sizing: border-box;
    overflow: hidden;
}
.pitch-analytics-mask {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* Reserve space before decode - stops first-paint stretch in all browsers */
    aspect-ratio: 3 / 2;
    max-height: min(280px, 52vw);
}
.pitch-superfast-mask,
.pitch-showcase-mask {
    aspect-ratio: 1 / 1;
    max-height: min(280px, 72vw);
}
.pitch-sharing-mask {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px 10px 6px;
    box-sizing: border-box;
    aspect-ratio: 720 / 232;
    max-height: 96px;
}
.pitch-analytics-img,
.pitch-sharing-img {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
    -webkit-user-drag: none;
    user-select: none;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (min-width: 981px) {
    .pitch-analytics-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 20px;
        align-items: center;
        min-height: 0;
    }
    .pitch-visual-analytics {
        margin: -8px -22px -8px 0;
        align-items: center;
        justify-content: center;
    }
    .pitch-analytics-mask {
        flex: 0 1 auto;
        width: 100%;
        max-height: 260px;
        border-radius: 18px 0 0 18px;
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    }
    .pitch-superfast-mask,
    .pitch-showcase-mask {
        max-height: 240px;
    }
    .pitch-analytics-img {
        object-position: left center;
    }
    .pitch-showcase-img,
    .pitch-superfast-img {
        max-width: min(100%, 240px);
    }
    .pitch-visual-showcase .pitch-showcase-mask,
    .pitch-visual-superfast .pitch-superfast-mask {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    }
    .pitch-sharing-mask {
        max-height: min(152px, 14vw);
        padding: 8px 14px 10px;
    }
}
.pitch-card h3 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
}
.pitch-card h3 em {
    color: var(--accent);
    font-style: normal;
}
.pitch-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.55;
}
.pitch-perks {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.pitch-perks li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}
.pitch-perks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}
.pitch-card .btn {
    min-height: 42px;
    padding: 10px 18px;
}
.pitch-visual {
    position: relative;
    min-height: 0;
}
.pitch-note {
    margin: 10px 0 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
}
.pitch-phone {
    background: linear-gradient(180deg, rgba(247, 244, 255, 0.88) 0%, rgba(255, 255, 255, 0.68) 70%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    padding: 18px 16px 16px;
    text-align: center;
    box-shadow: 0 16px 32px rgba(88, 70, 180, 0.1);
}
.pitch-phone-bar {
    width: 42px;
    height: 5px;
    border-radius: 99px;
    background: #e4dff6;
    margin: 0 auto 14px;
}
.pitch-avatar {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b7cff, #5b4de8);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.pitch-phone strong { display: block; font-size: 1rem; letter-spacing: -0.03em; }
.pitch-phone span, .pitch-phone small {
    display: block;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
}
.pitch-phone .chip-row { justify-content: center; }
.pitch-tiles { display: grid; gap: 10px; }
.pitch-tile {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.pitch-tile b {
    display: block;
    height: 42px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(124, 108, 255, 0.18), rgba(124, 108, 255, 0.55)),
        #d8d2f7;
}
.pitch-tile:nth-child(2) b { background: linear-gradient(135deg, #c7d2fe, #818cf8); }
.pitch-tile:nth-child(3) b { background: linear-gradient(135deg, #ddd6fe, #a78bfa); }
.pitch-share {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    min-height: 210px;
}
.pitch-qr {
    width: 148px;
    height: 168px;
    border-radius: 22px;
    background: #111827;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 16px 14px;
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.2);
}
.pitch-qr i {
    display: block;
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 8px),
        repeating-linear-gradient(#fff 0 4px, transparent 4px 8px);
    background-size: 18px 18px;
    opacity: 0.92;
}
.pitch-qr strong, .pitch-qr small {
    grid-column: 1 / -1;
    text-align: center;
}
.pitch-qr strong { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pitch-qr small { font-size: 0.68rem; color: #c7d2fe; }
.pitch-nfc {
    width: 72px;
    height: 92px;
    border-radius: 14px;
    background: #1f2937;
    color: #c7d2fe;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}
.pitch-stats {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    padding: 14px;
}
.pitch-stat {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
}
.pitch-stat strong { font-size: 1.2rem; letter-spacing: -0.04em; }
.pitch-stat span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.pitch-stat b { color: #147a4a; font-size: 0.78rem; }
.pitch-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}
.pitch-assurance li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pitch-assurance li::before {
    content: "\2713";
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 980px) {
    .pitch-card { grid-template-columns: 1fr; }
    .pitch-visual { min-height: 0; }
    .pitch-analytics-body {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }
    .pitch-sharing-body {
        gap: 0;
    }
    .pitch-visual-analytics {
        order: -1;
        margin: -10px -22px 0;
        min-height: 0;
    }
    .pitch-visual-sharing {
        margin: 6px -26px 0;
        padding: 0;
        height: auto;
        max-height: none;
    }
    .pitch-sharing-mask {
        padding: 2px 2px 8px;
        max-height: clamp(88px, 28vw, 112px);
    }
    .pitch-sharing-img {
        max-width: 100%;
    }
    .pitch-analytics-mask {
        border-radius: 0;
        max-height: min(280px, 56vw);
        -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    }
    .pitch-superfast-mask,
    .pitch-showcase-mask {
        max-height: min(260px, 72vw);
    }
    .pitch-analytics-img {
        object-position: 50% 38%;
    }
    .pitch-showcase-img,
    .pitch-superfast-img {
        max-width: min(88%, 260px);
    }
    .pitch-visual-showcase .pitch-showcase-mask,
    .pitch-visual-superfast .pitch-superfast-mask {
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    }
    .pitch-card-showcase .pitch-analytics-tagline,
    .pitch-card-superfast .pitch-analytics-tagline {
        text-align: center;
    }
    .pitch-analytics-tagline {
        text-align: center;
        font-size: clamp(1.08rem, 4.2vw, 1.32rem);
    }
    .pitch-sharing-tagline {
        text-align: left;
        font-size: clamp(1.02rem, 3.8vw, 1.22rem);
    }
}

@media (max-width: 800px) {
    .pitch-grid { grid-template-columns: 1fr; }
}

/* Override stale cached site.css (object-fit: cover / height: 100%) on live hosts */
.pitch-section .pitch-analytics-body {
    align-items: center !important;
    min-height: 0 !important;
}
.pitch-section .pitch-visual.pitch-visual-analytics,
.pitch-section .pitch-visual.pitch-visual-sharing,
.pitch-section .pitch-visual.pitch-visual-showcase,
.pitch-section .pitch-visual.pitch-visual-superfast {
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}
.pitch-section .pitch-visual-analytics {
    min-height: 0 !important;
}
.pitch-section .pitch-analytics-mask {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}
.pitch-section .pitch-analytics-mask picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}
.pitch-section .pitch-analytics-img,
.pitch-section .pitch-sharing-img,
.pitch-section .pitch-analytics-mask picture img {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    flex: none !important;
}
@media (min-width: 981px) {
    .pitch-section .pitch-sharing-mask {
        max-height: min(152px, 14vw) !important;
    }
}
