/* Homepage: "Who it's for" cards, features bento, ACE & Glance.
   Tokens come from radical-v4.css :root; visuals are drawn in HTML/CSS so they stay crisp
   and on-brand instead of relying on product screenshots. */

.home-head {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.home-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-coral);
}

.home-lede {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gp-gray-700);
}

/* Shared glass card */
.gp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow: 0 16px 44px rgba(11, 19, 43, 0.07), 0 0 0 1px rgba(14, 114, 183, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    /* opacity listed so this rule doesn't cancel the .reveal-on-scroll fade */
    transition: opacity 0.6s var(--ease-out-quint), box-shadow 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.gp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(11, 19, 43, 0.1), 0 0 0 1px rgba(14, 114, 183, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gp-card_body {
    padding: 0 2rem 2rem;
}

.gp-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gp-oxford);
}

.gp-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gp-gray-700);
}

.gp-card_label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gp-blue);
}

/* Illustration stage at the top of each card */
.viz {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 13.5rem;
    margin: 0.75rem 0.75rem 1.75rem;
    padding: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 90% at 20% 10%, rgba(155, 212, 227, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 70% 80% at 100% 100%, rgba(14, 114, 183, 0.12) 0%, transparent 60%),
        #f2f8fd;
}

.viz.is-coral {
    background:
        radial-gradient(ellipse 80% 90% at 10% 0%, rgba(252, 141, 113, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 70% 80% at 100% 100%, rgba(155, 212, 227, 0.45) 0%, transparent 60%),
        #fff6f2;
}

.viz-glass {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11, 19, 43, 0.08), 0 0 0 1px rgba(14, 114, 183, 0.05);
}

.viz-label {
    white-space: nowrap;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-gray-500);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(155, 212, 227, 0.32);
    color: var(--gp-blue-dark);
}

.chip.is-solid {
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(14, 114, 183, 0.3);
}

.chip.is-muted {
    background: rgba(11, 19, 43, 0.05);
    color: var(--gp-gray-500);
}

.chip.is-coral {
    background: rgba(252, 141, 113, 0.18);
    color: #b4553c;
    font-weight: 600;
}

.chip.is-outline {
    background: #fff;
    border: 1.5px solid rgba(14, 114, 183, 0.25);
    font-weight: 600;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Who it's for ---------- */
.who-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Patients: channels + conversation */
.viz-chat {
    width: 100%;
    max-width: 17rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.viz-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.bubble {
    align-self: flex-start;
    max-width: 90%;
    padding: 0.625rem 0.875rem;
    border-radius: 6px 16px 16px 16px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gp-gray-700);
    background: linear-gradient(145deg, #fff 0%, rgba(230, 242, 255, 0.85) 100%);
    border: 1px solid rgba(14, 114, 183, 0.1);
}

.bubble.is-me {
    align-self: flex-end;
    border-radius: 16px 6px 16px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    border-color: transparent;
}

/* Clinicians: pre-prioritised list */
.viz-list {
    width: 100%;
    max-width: 18rem;
    padding: 0.875rem;
}

.viz-list_head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.viz-list_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.25rem;
    border-top: 1px solid rgba(11, 19, 43, 0.06);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gp-oxford);
}

.viz-list_row span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Features bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.bento .is-wide {
    grid-column: span 2;
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 34rem;
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 55%, transparent 100%);
}

.chip-cloud .chip {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(14, 114, 183, 0.1);
    box-shadow: 0 4px 12px rgba(11, 19, 43, 0.04);
}

.chip-cloud .chip.is-solid {
    border-color: transparent;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    box-shadow: 0 6px 16px rgba(14, 114, 183, 0.3);
}

.viz-slots {
    width: 100%;
    max-width: 15rem;
    padding: 1rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    margin: 0.75rem 0;
}

.slot-grid span {
    padding: 0.4375rem 0;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gp-blue-dark);
    background: rgba(14, 114, 183, 0.07);
}

.slot-grid .is-on {
    color: #fff;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    box-shadow: 0 6px 14px rgba(14, 114, 183, 0.3);
}

.viz-confirm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(11, 19, 43, 0.06);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gp-oxford);
}

.viz-urgency {
    width: 100%;
    max-width: 15rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.level {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(11, 19, 43, 0.4);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(14, 114, 183, 0.08);
}

.level .dot {
    background: rgba(14, 114, 183, 0.2);
}

.level.is-on {
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    box-shadow: 0 8px 20px rgba(14, 114, 183, 0.32);
}

.level.is-on .dot {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.viz-flow {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 42rem;
}

.viz-flow .viz-glass {
    flex: 1;
    min-width: 0;
    padding: 1.375rem;
}

.viz-flow_title {
    margin: 0.5rem 0 0.875rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gp-oxford);
}

.viz-line {
    flex: 0 0 4.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gp-cyan), var(--gp-blue) 60%, var(--gp-coral));
    position: relative;
}

.viz-line::before,
.viz-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.625rem;
    height: 0.625rem;
    margin-top: -0.3125rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gp-blue-light);
}

.viz-line::before {
    left: -0.3125rem;
}

.viz-line::after {
    right: -0.3125rem;
    border-color: var(--gp-coral);
}

/* Integration card: triage in, saved record out */
.rec-out {
    border: 1.5px solid rgba(252, 141, 113, 0.35);
}

.viz-alert {
    width: 100%;
    max-width: 15rem;
    padding: 1rem;
    border: 1.5px solid rgba(252, 141, 113, 0.45);
    box-shadow: 0 14px 36px rgba(252, 141, 113, 0.2), 0 0 0 1px rgba(252, 141, 113, 0.08);
}

.viz-alert_head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #b4553c;
}

.pulse {
    position: relative;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--gp-coral);
}

.pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--gp-coral);
    animation: gpPulse 2s var(--ease-out-expo) infinite;
}

@keyframes gpPulse {
    from {
        transform: scale(0.6);
        opacity: 0.9;
    }

    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

.viz-alert_text {
    margin: 0.625rem 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gp-oxford);
}

/* ---------- ACE & Glance ---------- */
.section_ace {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(155, 212, 227, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 55% 50% at 95% 100%, rgba(252, 141, 113, 0.16) 0%, transparent 60%),
        var(--gp-off-white);
}

.ag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.ag-panel {
    border: 1px solid rgba(14, 114, 183, 0.12);
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.85) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.ag-panel.is-glance {
    border-color: rgba(252, 141, 113, 0.25);
    background: linear-gradient(180deg, rgba(255, 244, 240, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.ag-panel.is-glance .gp-card_label {
    color: #c9654b;
}

.ag-visual {
    display: block;
    width: calc(100% - 1.5rem);
    height: auto;
    aspect-ratio: 912 / 480;
    margin: 0.75rem 0.75rem 1.75rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11, 19, 43, 0.08);
}

/* Simplified ACE flow: deliberately high level, no routing internals on the public site */
.ag-viz {
    flex: none;
    gap: 0.75rem;
    min-height: 17rem;
    margin: 0.75rem 0.75rem 1.75rem;
}

.ag-viz::before {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--gp-cyan), var(--gp-blue) 50%, var(--gp-coral));
}

.ace-in,
.ace-out {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    max-width: 13rem;
    padding: 1rem;
    background: #fff;
}

.ace-out {
    flex: 1.2;
}

.ace-offer svg {
    flex: none;
}

.ace-in strong {
    font-size: 1.125rem;
    color: var(--gp-oxford);
}

.ace-out .chip.is-solid {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
}

.ace-offer {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #c9654b;
}

.ace-mark {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.875rem 0.625rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 0 0 8px rgba(155, 212, 227, 0.3), 0 14px 34px rgba(14, 114, 183, 0.22);
}

.ace-mark span {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--gp-blue);
}

.ag-panel h3 em {
    font-style: normal;
    color: var(--gp-coral);
}

.ag-panel.is-glance h3 em {
    color: var(--gp-blue);
}

/* ---------- Dashboard imagery ---------- */
.showcase {
    position: relative;
    max-width: 75rem;
    margin: 0 auto 3rem;
}

.showcase::before {
    content: '';
    position: absolute;
    inset: 10% 8%;
    border-radius: 50%;
    filter: blur(60px);
    background: radial-gradient(ellipse, rgba(61, 155, 224, 0.28) 0%, rgba(155, 212, 227, 0.2) 50%, transparent 75%);
    pointer-events: none;
}

.showcase img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

.viz.is-shot {
    padding: 1.25rem 1.25rem 0;
    align-items: flex-end;
}

.viz.is-shot img {
    display: block;
    width: 100%;
    max-width: 40rem;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(11, 19, 43, 0.12));
}

/* ---------- Customisation: routing map ---------- */
.section_config {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 60% at 100% 40%, rgba(155, 212, 227, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 100%, rgba(252, 141, 113, 0.12) 0%, transparent 60%),
        var(--gp-white);
}

.section_config .home-head {
    max-width: 62rem;
}

.config-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem 2.25rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.config-points li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gp-oxford);
}

.config-points .dot {
    width: 0.625rem;
    height: 0.625rem;
    color: var(--gp-blue);
    box-shadow: 0 0 0 4px rgba(14, 114, 183, 0.12);
}

.config-points li:nth-child(2) .dot {
    color: var(--gp-coral);
    box-shadow: 0 0 0 4px rgba(252, 141, 113, 0.15);
}

.role-av {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
}

.role-av.is-coral {
    background: linear-gradient(135deg, var(--gp-coral) 0%, #fdb29f 100%);
}

.role-av.is-cyan {
    color: var(--gp-blue-dark);
    background: linear-gradient(135deg, var(--gp-cyan) 0%, #c9e8f1 100%);
}

.role-av.is-oxford {
    background: linear-gradient(135deg, var(--gp-oxford) 0%, #2a3a5e 100%);
}

/* Desktop geometry mirrors the SVG viewBox (1000 x 440): rows at y = 45..395, hub at the centre. */
.map {
    position: relative;
    max-width: 68rem;
    margin: 3rem auto 0;
    aspect-ratio: 1000 / 440;
}

.map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-lines path {
    transition: opacity 0.5s var(--ease-out-quint);
}

.map.is-cycling .map-lines path {
    opacity: 0.18;
}

.map.is-cycling .map-lines path.is-on {
    opacity: 1;
    stroke-dasharray: 6 8;
    animation: mapFlow 0.9s linear infinite;
}

@keyframes mapFlow {
    to {
        stroke-dashoffset: -28;
    }
}

.map-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 1.25rem;
    transform: translate(-50%, -50%);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(155, 212, 227, 0.25), 0 18px 44px rgba(14, 114, 183, 0.22);
}

.map-hub img {
    width: 3.5rem;
    height: 3.5rem;
}

.map-hub span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-blue);
}

.map-pairs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-pairs li {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--y);
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.map-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 23.5%;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    border-radius: 100px;
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gp-oxford);
    background: #fff;
    border: 1px solid rgba(14, 114, 183, 0.08);
    box-shadow: 0 8px 24px rgba(11, 19, 43, 0.06);
    transition: opacity 0.5s var(--ease-out-quint), box-shadow 0.5s var(--ease-out-quint), transform 0.5s var(--ease-out-quint);
}

.map-req {
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-weight: 500;
}

.map-req .role-av {
    order: 2;
}

.map.is-cycling .map-pairs li:not(.is-on) .map-card {
    opacity: 0.55;
}

.map-pairs li.is-on .map-card {
    transform: scale(1.04);
    box-shadow: 0 0 0 2px rgba(61, 155, 224, 0.45), 0 14px 32px rgba(14, 114, 183, 0.2);
}

.home-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ---------- Testimonials ---------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.quote-card {
    margin: 0;
    padding: 2.25rem 2.5rem;
    gap: 1.25rem;
}

.quote-card:nth-child(1),
.quote-card:nth-child(4) {
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(155, 212, 227, 0.3) 0%, transparent 60%),
        rgba(255, 255, 255, 0.8);
}

.quote-card:nth-child(2),
.quote-card:nth-child(3) {
    background:
        radial-gradient(ellipse 70% 90% at 100% 100%, rgba(252, 141, 113, 0.12) 0%, transparent 60%),
        rgba(255, 255, 255, 0.8);
}

.quote-mark {
    color: var(--gp-coral);
    opacity: 0.85;
}

.quote-card blockquote {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--gp-oxford);
}

.quote-card blockquote em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gp-blue) 0%, var(--gp-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.quote-who {
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 19, 43, 0.07);
    font-size: 0.9375rem;
    text-align: left;
    color: var(--gp-gray-500);
}

.quote-who strong {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 1rem;
    color: var(--gp-oxford);
}

/* ---------- Demo video ---------- */
.section_video .youtube-video_wrapper {
    padding: 0.75rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 60px rgba(11, 19, 43, 0.1), 0 0 0 1px rgba(14, 114, 183, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section_video .youtube-video_thumbnail {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.section_video .button-video_wrapper {
    inset: 0.75rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(14, 114, 183, 0) 40%, rgba(14, 114, 183, 0.12) 100%);
}

.section_video .button-video_wrapper:hover {
    background: linear-gradient(180deg, rgba(14, 114, 183, 0.04) 0%, rgba(14, 114, 183, 0.18) 100%);
}

.section_video .play-icon {
    display: none;
}

/* Brand play pill, bottom-centre: the thumbnail's logo fills the middle, so a centred button covered it.
   The triangle is a background image so the pill centres at any text width. */
.section_video .button-video_wrapper::before {
    content: 'Watch the live demo';
    position: absolute;
    left: 50%;
    bottom: 2rem;
    display: flex;
    align-items: center;
    height: 3.5rem;
    padding: 0 1.75rem 0 3.25rem;
    border-radius: 100px;
    font: 600 1rem/1 Outfit, sans-serif;
    white-space: nowrap;
    color: #fff;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M0 0l16 10L0 20z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 1.5rem 50% / 0.875rem 1.0625rem,
        linear-gradient(135deg, var(--gp-coral) 0%, #fdb29f 100%);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5), 0 16px 36px rgba(252, 141, 113, 0.45);
    transform: translateX(-50%);
    transition: transform 0.4s var(--ease-spring);
}

.section_video .button-video_wrapper:hover::before {
    transform: translateX(-50%) translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .who-grid,
    .ag-grid,
    .quote-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .who-grid {
        max-width: 34rem;
        margin: 0 auto;
    }

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

    .map {
        aspect-ratio: auto;
        max-width: 36rem;
    }

    .map-lines,
    .map-hub,
    .map-req .role-av {
        display: none;
    }

    .map-pairs {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .map-pairs li {
        position: static;
        align-items: center;
        gap: 0.5rem;
        transform: none;
    }

    .map-pairs li::after {
        content: '';
        order: 1;
        flex: 0 0 1.25rem;
        height: 2px;
        background: linear-gradient(90deg, var(--gp-cyan), var(--gp-blue));
    }

    .map-card {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .map-role {
        order: 2;
    }
}

@media (max-width: 767px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .bento .is-wide {
        grid-column: auto;
    }

    .gp-card_body {
        padding: 0 1.5rem 1.5rem;
    }

    .viz-flow {
        flex-direction: column;
    }

    .ag-viz {
        flex-direction: column;
    }

    .ag-viz::before {
        left: 50%;
        right: auto;
        top: 12%;
        bottom: 12%;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--gp-cyan), var(--gp-blue) 50%, var(--gp-coral));
    }

    .ace-in,
    .ace-out {
        width: 100%;
        max-width: 16rem;
        align-items: center;
    }

    .viz-flow .viz-glass {
        width: 100%;
    }

    .viz-line {
        flex-basis: 3rem;
        width: 2px;
        height: 3rem;
        background: linear-gradient(180deg, var(--gp-cyan), var(--gp-blue) 60%, var(--gp-coral));
    }

    .viz-line::before,
    .viz-line::after {
        left: 50%;
        right: auto;
        margin: 0 0 0 -0.3125rem;
    }

    .viz-line::before {
        top: -0.3125rem;
    }

    .viz-line::after {
        top: auto;
        bottom: -0.3125rem;
    }

    .section_ace {
        padding: 4rem 0;
    }

    .section_config {
        padding: 4rem 0;
    }

    .quote-card {
        padding: 1.75rem 1.5rem;
    }

    .quote-card blockquote {
        font-size: 1.125rem;
    }

    /* Thumbnail is too small on phones for an overlaid pill: sit it in the frame beneath the image */
    .section_video .youtube-video_wrapper {
        padding: 0.5rem 0.5rem 4rem;
    }

    .section_video .button-video_wrapper {
        inset: 0.5rem;
    }

    .section_video .button-video_wrapper::before {
        bottom: 0.125rem;
        height: 2.75rem;
        padding: 0 1.25rem 0 2.625rem;
        font-size: 0.875rem;
        background-position: 1.125rem 50%, 0 0;
        background-size: 0.75rem 0.9375rem, auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse::after {
        animation: none;
    }

    .map-pairs li.is-on .map-card {
        transform: none;
    }

    .gp-card,
    .gp-card:hover {
        transform: none;
    }
}
