#products {
    --navy-dark: #0e1033;
    --navy: #1f3a63;
    --navy-soft: #4a5f80;
    --blue: #2f6db3;
    --blue-light: #6897cf;
    --ice: #eff6fc;
    --line: #dbe6f1;

    position: relative;
    padding: 48px 16px 56px;
    background:
        radial-gradient(900px 300px at 50% 0%, rgba(104, 151, 207, .14), transparent 70%),
        #eff5fb;
}

/* ---------- Section heading ---------- */
#products .products-header {
    max-width: 940px;
    margin: 0 auto 34px;
    text-align: center;
}

#products .products-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 18px;
    color: var(--navy-dark);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

/* Accent bar under the heading, same gradient as the card tops */
#products .products-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    transform: translateX(-50%);
}

/* Container */
#products .products-container {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ---------- Card ---------- */
/* Each card spans 7 rows of the shared grid (subgrid), so the image, badge row,
   title, subtitle, features, button and links line up across the two cards
   in a row and both cards end up the same height. */
#products .product-card {
    position: relative;
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 26px 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(14, 16, 51, .04), 0 6px 18px rgba(14, 16, 51, .05);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Accent line on top, brightens on hover */
#products .product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    opacity: .85;
    z-index: 2;
    transition: opacity .3s ease;
}

#products .product-card:hover {
    transform: translateY(-4px);
    border-color: #b9d1ea;
    box-shadow: 0 14px 34px rgba(31, 58, 99, .14);
}
#products .product-card:hover::before { opacity: 1; }

/* Icon + badge row */
/* ---------- Product image (full width, top of card) ---------- */
#products .product-media {
    position: relative;
    margin: -26px -26px 22px;          /* bleed to the card edges */
    aspect-ratio: 1000 / 520;
    overflow: hidden;
    background: #eff6fc;
    border-bottom: 1px solid var(--line);
}

#products .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
#products .product-card:hover .product-media img { transform: scale(1.04); }

/* Badge row */
#products .product-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

/* Category badge */
#products .product-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ice);
    border: 1px solid #c6dbf0;
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    white-space: nowrap;
}
#products .product-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 109, 179, .15);
}

/* Two badges side by side (wrap on narrow cards) */
#products .product-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
}

/* Filled badge for announcements */
#products .product-label--highlight {
    background: linear-gradient(135deg, #1f3a63 0%, #2f6db3 100%);
    border-color: transparent;
    color: #fff;
}
#products .product-label--highlight::before {
    background: #9fd0ff;
    box-shadow: 0 0 0 3px rgba(159, 208, 255, .25);
}

/* Heading + subtitle */
#products .product-card h2 {
    margin: 0 0 6px;
    color: var(--navy-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

#products .product-subtitle {
    align-self: start;
    margin: 0 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--navy-soft) !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left !important;
}

/* ---------- Features ---------- */
#products .product-features {
    align-self: start;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

#products .product-features li {
    position: relative;
    padding-left: 28px;
    color: #263b55;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Check mark in a soft circle */
#products .product-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6db3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat,
        #e3eefa;
}

/* ---------- Footer: button + quick links ---------- */
/* Let the button and links take part in the card grid directly */
#products .product-footer {
    display: contents;
}

#products .product-btn {
    justify-self: start;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0e1033 0%, #1f3a63 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(14, 16, 51, .18);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
#products .product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 16, 51, .26);
    filter: brightness(1.12);
}
#products .product-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 14px;
    line-height: 1;
    transition: transform .25s ease, background .25s ease;
}
#products .product-btn:hover span {
    transform: translateX(3px);
    background: rgba(255, 255, 255, .24);
}

/* Quick links */
#products .product-links {
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

#products .product-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #f6f9fd;
    border: 1px solid #c9dbee;
    color: #172e4d;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
#products .product-links a:hover {
    background: #e6f1fc;
    border-color: var(--blue-light);
    color: var(--blue);
    transform: translateY(-2px);
}

/* Keyboard focus */
#products .product-btn:focus-visible,
#products .product-links a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #products .products-container {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    #products { padding: 32px 12px 40px; }
    #products .products-header { margin-bottom: 24px; }
    #products .product-card { padding: 22px 18px 20px; border-radius: 12px; }
    #products .product-media { margin: -22px -18px 18px; }
    #products .product-card h2 { font-size: 21px; }
    #products .product-btn { justify-self: stretch; justify-content: space-between; box-sizing: border-box; }
}

/* Respect "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
    #products *,
    #products *::before { transition: none !important; }
    #products .product-card:hover .product-media img { transform: none; }
    #products .product-card:hover,
    #products .product-btn:hover,
    #products .product-links a:hover { transform: none; }
}


/* ==========================================================================
   "Something not working?" section
   Scoped to #troubleshooting; same palette as #products.
   ========================================================================== */

#troubleshooting {
    --navy-dark: #0e1033;
    --navy: #1f3a63;
    --navy-soft: #4a5f80;
    --blue: #2f6db3;
    --blue-light: #6897cf;
    --line: #dbe6f1;

    padding: 56px 16px 64px;
    background: #fff;
    border-top: 1px solid var(--line);
}

/* Heading: same treatment as "Choose your product" */
#troubleshooting .trouble-header {
    max-width: 1080px;
    margin: 0 auto 34px;
    text-align: center;
}

#troubleshooting .trouble-title {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 18px;
    color: var(--navy-dark);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
#troubleshooting .trouble-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    transform: translateX(-50%);
}

#troubleshooting .trouble-intro {
    margin: 0;
    color: var(--navy-soft) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center !important;
}

/* Grid: 4 across on desktop, 2 on tablets, 1 on phones */
#troubleshooting .trouble-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Card */
#troubleshooting .trouble-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(14, 16, 51, .04), 0 6px 18px rgba(14, 16, 51, .05);
    color: var(--navy-dark);
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Accent line appears on hover */
#troubleshooting .trouble-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

#troubleshooting .trouble-card:hover {
    transform: translateY(-4px);
    border-color: #b9d1ea;
    box-shadow: 0 14px 30px rgba(31, 58, 99, .13);
}
#troubleshooting .trouble-card:hover::before { transform: scaleX(1); }

#troubleshooting .trouble-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

#troubleshooting .trouble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 11px;
    color: var(--navy);
    background: linear-gradient(135deg, #eaf3fd 0%, #d7e6f6 100%);
    border: 1px solid #cfe0f2;
    transition: transform .3s ease, color .3s ease;
}
#troubleshooting .trouble-icon svg { width: 21px; height: 21px; }
#troubleshooting .trouble-card:hover .trouble-icon { transform: scale(1.06) rotate(-4deg); color: var(--blue); }

#troubleshooting .trouble-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

/* Product line sits at the bottom so all four cards line up */
#troubleshooting .trouble-product {
    margin-top: auto;
    padding-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-soft);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .25s ease;
}
#troubleshooting .trouble-arrow { transition: transform .25s ease; }
#troubleshooting .trouble-card:hover .trouble-product { color: var(--blue); }
#troubleshooting .trouble-card:hover .trouble-arrow { transform: translateX(4px); }

@media (max-width: 991px) {
    #troubleshooting .trouble-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    #troubleshooting { padding: 40px 12px 48px; }
    #troubleshooting .trouble-header { margin-bottom: 24px; }
    #troubleshooting .trouble-grid { grid-template-columns: 1fr; gap: 12px; }
    #troubleshooting .trouble-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    #troubleshooting *,
    #troubleshooting *::before { transition: none !important; }
    #troubleshooting .trouble-card:hover { transform: none; }
}


/* ==========================================================================
   "All guides" section
   Scoped to #all-guides; same palette as #products.
   ========================================================================== */

#all-guides {
    --navy-dark: #0e1033;
    --navy: #1f3a63;
    --navy-soft: #4a5f80;
    --blue: #2f6db3;
    --blue-light: #6897cf;
    --line: #dbe6f1;
    --ice: #f3f8fd;

    padding: 56px 16px 64px;
    background: #eff5fb;
    border-top: 1px solid var(--line);
}

/* Heading: same treatment as the other sections */
#all-guides .guides-header {
    max-width: 1080px;
    margin: 0 auto 34px;
    text-align: center;
}

#all-guides .guides-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 18px;
    color: var(--navy-dark);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
#all-guides .guides-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    transform: translateX(-50%);
}

/* 4 columns on desktop, 2 on tablets, 1 on phones.
   No fixed or stretched height: each card grows and shrinks with its open groups. */
#all-guides .guides-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

/* Column card */
#all-guides .guide-col {
    position: relative;
    padding: 20px 18px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(14, 16, 51, .04), 0 6px 18px rgba(14, 16, 51, .05);
    overflow: hidden;
    transition: box-shadow .3s ease, border-color .3s ease;
}
#all-guides .guide-col:hover {
    border-color: #c4d8ee;
    box-shadow: 0 12px 28px rgba(31, 58, 99, .11);
}
#all-guides .guide-col::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    opacity: .85;
}

/* Column header: icon + title */
#all-guides .guide-col-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

#all-guides .guide-col-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--navy);
    background: linear-gradient(135deg, #eaf3fd 0%, #d7e6f6 100%);
    border: 1px solid #cfe0f2;
}
#all-guides .guide-col-icon svg { width: 20px; height: 20px; }

#all-guides .guide-col-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Group (accordion) */
#all-guides .guide-group {
    border-bottom: 1px solid #edf2f8;
}
#all-guides .guide-group:last-child { border-bottom: 0; }

#all-guides .guide-group summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 30px 8px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    color: var(--navy-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
#all-guides .guide-group summary::-webkit-details-marker { display: none; }
#all-guides .guide-group summary:hover { background: var(--ice); color: var(--blue); }

#all-guides .guide-group-title { flex: 1; min-width: 0; }

/* Number of guides in the group */
#all-guides .guide-count {
    flex: none;
    min-width: 22px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f0f5fb;
    border: 1px solid #dbe6f1;
    color: var(--navy-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* Open group: highlighted title with an accent bar on the left */
#all-guides .guide-group[open] > summary {
    background: var(--ice);
    color: var(--navy-dark);
}
#all-guides .guide-group[open] > summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--navy-dark), var(--blue-light));
}
#all-guides .guide-group[open] .guide-count {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
#all-guides .guide-group[open] > summary::after { background-color: #dbe8f6; }

/* Smooth open/close where the browser supports it (Chrome/Edge 131+);
   other browsers simply open instantly. */
#all-guides { interpolate-size: allow-keywords; }
#all-guides .guide-group::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
}
#all-guides .guide-group[open]::details-content { block-size: auto; }
#all-guides .guide-group summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Chevron in a small circle */
#all-guides .guide-group summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3a63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat,
        #e8f0f9;
    transition: transform .25s ease, background-color .2s ease;
}
#all-guides .guide-group[open] summary::after { transform: rotate(180deg); }

/* Links */
#all-guides .guide-links {
    list-style: none;
    margin: 0;
    padding: 6px 0 12px;
}

#all-guides .guide-links a {
    position: relative;
    display: block;
    padding: 5px 8px 5px 18px;
    margin: 0 -8px;
    border-radius: 6px;
    color: var(--navy-soft);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
}

/* Small dot before each link, turns into a bar on hover */
#all-guides .guide-links a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;              /* level with the first line, even when a link wraps */
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: #a9c3e0;
    transition: width .2s ease, background .2s ease;
}

#all-guides .guide-links a:hover {
    color: var(--blue);
    background: var(--ice);
    padding-left: 24px;
}
#all-guides .guide-links a:hover::before { width: 10px; background: var(--blue); }
#all-guides .guide-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

@media (max-width: 991px) {
    #all-guides .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    #all-guides { padding: 40px 12px 48px; }
    #all-guides .guides-header { margin-bottom: 24px; }
    #all-guides .guides-grid { grid-template-columns: 1fr; gap: 12px; }
    #all-guides .guide-links a { padding-top: 9px; padding-bottom: 9px; }  /* larger tap targets */
    #all-guides .guide-links a::before { top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #all-guides *,
    #all-guides *::before,
    #all-guides *::after { transition: none !important; }
}


/* ==========================================================================
   "Developer guides" section (dark)
   Scoped to #developers.
   ========================================================================== */

#developers {
    --navy-dark: #0e1033;
    --navy: #1f3a63;
    --navy-soft: #4a5f80;
    --blue: #2f6db3;
    --blue-light: #6897cf;
    --sky: #9fc4ec;
    --line: #dbe6f1;

    position: relative;
    padding: 64px 16px 72px;
    color: #fff;
    background:
        radial-gradient(700px 360px at 85% 0%, rgba(104, 151, 207, .28), transparent 70%),
        radial-gradient(600px 320px at 0% 100%, rgba(47, 109, 179, .22), transparent 70%),
        linear-gradient(160deg, #0e1033 0%, #172a4f 55%, #1f3a63 100%);
    overflow: hidden;
}

/* Faint grid pattern */
#developers::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

#developers .dev-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
#developers .dev-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: 34px;
    text-align: center;
}

#developers .dev-title {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 18px;
    color: #fff;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
#developers .dev-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, var(--blue-light));
    transform: translateX(-50%);
}

#developers .dev-intro {
    margin: 0;
    color: #c9d7ea !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center !important;
}

#developers .dev-start {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    color: var(--navy-dark) !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}
#developers .dev-start span { transition: transform .25s ease; }
#developers .dev-start:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .32); }
#developers .dev-start:hover span { transform: translateX(3px); }

/* ---------- Four tiles ---------- */
#developers .dev-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#developers .dev-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none !important;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#developers .dev-tile:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(159, 196, 236, .55);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

/* Highlighted tile */
#developers .dev-tile--featured {
    background: linear-gradient(135deg, rgba(104, 151, 207, .28), rgba(47, 109, 179, .18));
    border-color: rgba(159, 196, 236, .55);
}
#developers .dev-tile--featured:hover { background: linear-gradient(135deg, rgba(104, 151, 207, .38), rgba(47, 109, 179, .26)); }

#developers .dev-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: transform .3s ease, background .3s ease;
}
#developers .dev-tile-icon svg { width: 22px; height: 22px; }
#developers .dev-tile:hover .dev-tile-icon { transform: scale(1.06) rotate(-4deg); background: rgba(255, 255, 255, .16); }

#developers .dev-tile-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

#developers .dev-tile-text {
    flex: 1;
    margin-bottom: 18px;
    color: #c9d7ea;
    font-size: 14.5px;
    line-height: 1.55;
}

#developers .dev-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
}
#developers .dev-tile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    transition: transform .25s ease, background .25s ease;
}
#developers .dev-tile:hover .dev-tile-arrow { transform: translateX(4px); background: rgba(255, 255, 255, .24); }

/* ---------- Sub-heading ---------- */
#developers .dev-subtitle {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 20px;
    color: var(--sky);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
#developers .dev-subtitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(159, 196, 236, .45), transparent);
}

/* ---------- API group cards ---------- */
/* 3 columns; the long Merchant API card spans two rows so the shorter
   cards stack beside it instead of leaving big gaps. */
#developers .api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 18px;
    align-items: start;
}
#developers .api-card--tall { grid-row: span 2; }

#developers .api-card {
    position: relative;
    padding: 20px 20px 8px;
    background: #fff;
    border-radius: 14px;
    color: var(--navy-dark);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
#developers .api-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
}
#developers .api-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .30); }

#developers .api-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
#developers .api-card-head h4 {
    margin: 0;
    color: var(--navy-dark);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
}

#developers .api-count {
    flex: none;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#developers .api-links {
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
}

#developers .api-links a {
    position: relative;
    display: block;
    padding: 5px 8px 5px 18px;
    margin: 0 -8px;
    border-radius: 6px;
    color: var(--navy-soft);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
#developers .api-links a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: #a9c3e0;
    transition: width .2s ease, background .2s ease;
}
#developers .api-links a:hover { color: var(--blue); background: #f3f8fd; padding-left: 24px; }
#developers .api-links a:hover::before { width: 10px; background: var(--blue); }

#developers .new-tab-note {
    display: block;
    padding-left: 10px;
    color: #7d8ca3;
    font-size: 12px;
}

#developers .api-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -20px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: #f7fafd;
    color: var(--navy-dark) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}
#developers .api-view-all span:last-child { transition: transform .2s ease; }
#developers .api-view-all:hover { background: #eaf2fb; color: var(--blue) !important; }
#developers .api-view-all:hover span:last-child { transform: translateX(4px); }
#developers .api-card:has(.api-view-all) { padding-bottom: 0; }

/* Keyboard focus */
#developers a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
#developers .api-card a:focus-visible { outline-color: var(--blue); outline-offset: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #developers .api-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    #developers { padding: 44px 12px 52px; }
    #developers .dev-tiles { grid-template-columns: 1fr; gap: 12px; }
    #developers .api-grid { grid-template-columns: 1fr; gap: 12px; }
    #developers .api-card--tall { grid-row: auto; }
    #developers .dev-tile { padding: 20px; }
    #developers .api-links a { padding-top: 9px; padding-bottom: 9px; }
    #developers .api-links a::before { top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #developers *,
    #developers *::before { transition: none !important; }
    #developers .dev-tile:hover,
    #developers .api-card:hover,
    #developers .dev-start:hover { transform: none; }
}


/* ==========================================================================
   "Need more help?" section
   Scoped to #contact.
   ========================================================================== */

#contact {
    --navy-dark: #0e1033;
    --navy: #1f3a63;
    --navy-soft: #4a5f80;
    --blue: #2f6db3;
    --blue-light: #6897cf;
    --line: #dbe6f1;

    padding: 72px 16px 80px;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(104, 151, 207, .16), transparent 70%),
        #eff5fb;
}

#contact .contact-card {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 44px 32px 36px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(14, 16, 51, .04), 0 18px 40px rgba(31, 58, 99, .10);
    overflow: hidden;
}
#contact .contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
}

/* Headset icon with a soft ring */
#contact .contact-icon {
    display: flex;              /* own line, above the heading */
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: var(--navy);
    background: linear-gradient(135deg, #eaf3fd 0%, #d7e6f6 100%);
    border: 1px solid #cfe0f2;
    box-shadow: 0 0 0 8px rgba(104, 151, 207, .10);
}
#contact .contact-icon svg { width: 30px; height: 30px; }

#contact .contact-title {
    position: relative;
    display: inline-block;
    margin: 0 0 16px;
    padding-bottom: 18px;
    color: var(--navy-dark);
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
#contact .contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy-dark), var(--blue-light));
    transform: translateX(-50%);
}

#contact .contact-text {
    max-width: 480px;
    margin: 0 auto 26px;
    color: var(--navy-soft) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center !important;
}

/* Email as the main action */
#contact .contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0e1033 0%, #1f3a63 100%);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(14, 16, 51, .22);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
#contact .contact-email svg { width: 20px; height: 20px; flex: none; }
#contact .contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(14, 16, 51, .30);
    filter: brightness(1.12);
}

#contact .contact-faq {
    display: table;            /* own line, centred */
    margin: 20px auto 0;
    color: var(--blue) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(47, 109, 179, .35);
    transition: border-color .2s ease, color .2s ease;
}
#contact .contact-faq span { display: inline-block; transition: transform .2s ease; }
#contact .contact-faq:hover { color: var(--navy) !important; border-bottom-color: var(--navy); }
#contact .contact-faq:hover span { transform: translateX(4px); }

#contact a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 480px) {
    #contact { padding: 48px 12px 56px; }
    #contact .contact-card { padding: 36px 20px 30px; border-radius: 14px; }
    #contact .contact-email { font-size: 15.5px; padding: 13px 18px; }
}


/* ==========================================================================
   Footer
   Scoped to #site-footer.
   ========================================================================== */

#site-footer {
    padding: 40px 16px 28px;
    color: #b9c8dd;
    background: linear-gradient(160deg, #0e1033 0%, #172a4f 100%);
}

#site-footer .footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

/* Centred like the section headings above.
   text-align/color are forced so older page CSS can't override them. */
#site-footer .footer-main p {
    max-width: 760px;
    margin: 0 auto 10px;
    color: #b9c8dd !important;
    font-size: 14px;
    line-height: 1.6;
    text-align: center !important;
}

#site-footer a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: border-color .2s ease;
}
#site-footer a:hover { border-bottom-color: #fff; }
#site-footer a:focus-visible { outline: 2px solid #9fc4ec; outline-offset: 3px; }

#site-footer .footer-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8fa3bf;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    #contact *, #site-footer * { transition: none !important; }
    #contact .contact-email:hover { transform: none; }
}