/* ==========================================================================
   Base
   ========================================================================== */
:root {
    --color-text: #161b26;
    --color-text-muted: #475467;
    --color-border: #d0d5dd;
    --color-primary: #079669;
    --color-primary-hover: #067a56;
    --color-bg: #ffffff;
    --color-dark: #14171c;
    --color-dark-muted: #9aa1ab;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1000px;
    --gutter: 24px;
    --radius-sm: 6px;
    --radius-lg: 20px;
    --nav-height: 80px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-center {
    text-align: center;
}
/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

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

.btn--lg {
    height: 48px;
    padding: 0 20px;
    font-size: 16px;
}

.btn--outline {
    background: #fff;
    border-color: var(--color-border);
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.btn--outline svg {
    color: #667085;
}

.btn--outline:hover {
    background: #f9fafb;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
html {
    scroll-padding-top: var(--nav-height);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid #e9eaeb;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1216px;
    height: var(--nav-height);
    margin: 0 auto;
    padding: 0 var(--gutter);
    box-sizing: content-box;
}

.navbar__logo img {
    width: 112px;
    height: auto;
}

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

.navbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__item {
    position: relative;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: 600 16px/1.5 var(--font-sans);
    color: #414651;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.navbar__link[aria-current="page"],
.navbar__link:hover,
.navbar__link[aria-expanded="true"] {
    color: var(--color-text);
}

.navbar__link svg {
    color: #a4a7ae;
    transition: transform .2s;
}

.navbar__link[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.navbar__link:focus-visible,
.navbar__dropdown a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.navbar__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -8px;
    width: 300px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid #e9eaeb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 24px -6px rgba(16, 24, 40, .1), 0 4px 8px -4px rgba(16, 24, 40, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

/* Hover bridge so the menu doesn't close in the gap */
.navbar__dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.navbar__item.is-open .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.navbar__dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background-color .15s;
}

.navbar__dropdown a:hover {
    background: #f8f8f9;
}

.navbar__dropdown strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.navbar__dropdown span {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__actions .btn {
    height: 44px;
}

.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.navbar__burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform .25s, opacity .25s;
}

.navbar.is-open .navbar__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .navbar__burger span:nth-child(2) {
    opacity: 0;
}

.navbar.is-open .navbar__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(calc(100svh - var(--nav-height)), 860px);
    padding: 64px var(--gutter) 96px;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.hero__glow--green {
    left: calc(50% - 900px);
    bottom: -160px;
    width: 760px;
    height: 560px;
    background: radial-gradient(closest-side, rgba(7, 150, 105, .11), rgba(7, 150, 105, 0));
}

.hero__glow--violet {
    right: calc(50% - 860px);
    top: -120px;
    width: 820px;
    height: 640px;
    background: radial-gradient(closest-side, rgba(158, 119, 237, .12), rgba(158, 119, 237, 0));
}

.hero__content {
    max-width: 580px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 4px 12px 4px 10px;
    border: 1px solid #abefc6;
    border-radius: 999px;
    background: #ecfdf3;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #067647;
}

.hero__badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17b26a;
}

/* Soft pulsing ring around the dot */
.hero__badge-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #17b26a;
    opacity: .35;
    animation: hero-pulse 2s ease-out infinite;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero__accent {
    background: linear-gradient(90deg, #079669 0%, #12b39a 55%, #4f9cf9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__logo {
    width: 150px;
}

.hero__text {
    max-width: 500px;
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.hero__actions .btn--primary {
    box-shadow: 0 8px 20px -8px rgba(7, 150, 105, .55);
}

.hero__proof {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero__avatars {
    display: flex;
}

.hero__avatars img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.hero__avatars img + img {
    margin-left: -10px;
}

.hero__proof p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.hero__proof strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero__media {
    position: relative;
}

.hero__frame {
    position: relative;
    aspect-ratio: 600 / 528;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    overflow: hidden;
    /* Shown while the video loads */
    background:
        radial-gradient(60% 50% at 0% 0%, #c3e2e6 0%, transparent 70%),
        radial-gradient(50% 45% at 100% 100%, #f2cfdc 0%, transparent 70%),
        linear-gradient(160deg, #f4ecfb 0%, #eedcf8 60%, #f1d6e6 100%);
    box-shadow:
        0 40px 80px -32px rgba(16, 24, 40, .28),
        0 0 0 8px rgba(255, 255, 255, .6);
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__sound {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    color: var(--color-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

.hero__sound:hover {
    background: rgba(255, 255, 255, .85);
    transform: scale(1.06);
}

.hero__sound:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.hero__sound .icon-unmuted,
.hero__sound[aria-pressed="true"] .icon-muted {
    display: none;
}

.hero__sound[aria-pressed="true"] .icon-unmuted {
    display: block;
}

.hero__chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(233, 234, 235, .8);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 32px -12px rgba(16, 24, 40, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: hero-float 6s ease-in-out infinite;
}

.hero__chip--top {
    top: 40px;
    left: -48px;
}

.hero__chip--bottom {
    bottom: 96px;
    right: -24px;
    animation-delay: -3s;
}

.hero__chip-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.hero__chip-icon--green {
    background: #dcfae6;
    color: #079455;
}

.hero__chip-icon--violet {
    background: #ebe9fe;
    color: #6938ef;
}

.hero__chip strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.hero__chip small {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

/* Staggered entrance: set --d on each element for its delay step */
.reveal {
    animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes hero-pulse {
    from { transform: scale(.6); opacity: .45; }
    to { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero__chip,
    .hero__badge-dot::after {
        animation: none;
    }
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands {
    position: relative;
    isolation: isolate;
    /* The glow bleeds past the right edge; unclipped, it widened the page and phones zoomed out to fit it */
    overflow-x: clip;
    padding: 100px var(--gutter) 110px;
    text-align: center;
}

.brands__glow {
    position: absolute;
    right: -200px;
    top: 50%;
    width: 700px;
    height: 600px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 24, 40, .035), rgba(16, 24, 40, 0));
    pointer-events: none;
    z-index: -1;
}

.brands__title {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.brands__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brands__row + .brands__row {
    margin-top: 24px;
}

.brands__item img {
    width: 180px;
    height: auto;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
    padding: 0 var(--gutter);
}

.stats__card {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 52px 54px;
    border-radius: var(--radius-lg);
    background: var(--color-dark);
    color: #fff;
    text-align: center;
}

.stats__title {
    margin: 0 0 18px;
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.stats__text {
    max-width: 920px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-dark-muted);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.stats__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 4px 24px;
    border-left: 2px solid rgba(255, 255, 255, .75);
}

.stats__value {
    font-size: clamp(36px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats__label {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.stats__tagline {
    margin: 0;
    font-size: 18px;
    color: var(--color-dark-muted);
}

/* ==========================================================================
   Modules (interactive tabs)
   ========================================================================== */
.modules {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    margin-top: 80px;
    padding: 32px 0 0 50px;
    background: #f8f8f9;
    overflow: hidden;
}

.modules__glow {
    position: absolute;
    left: 30%;
    bottom: -220px;
    width: 720px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(7, 150, 105, .09), rgba(7, 150, 105, 0));
    pointer-events: none;
    z-index: -1;
}

.modules__tabs {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
    padding-bottom: 32px;
}

.modules__tab {
    /* --step (0-3) indents the pills into a chevron shape */
    --indent: calc(var(--step, 0) * min(80px, 5.5vw));
    width: 350px;
    max-width: calc(100% - var(--indent));
    height: 62px;
    margin-left: var(--indent);
    padding: 0 24px;
    border: 1px solid #d5d7da;
    border-radius: 999px;
    background: transparent;
    font: 600 21px/1 var(--font-sans);
    color: #a4a7ae;
    cursor: pointer;
    transition: color .25s, border-color .25s, background-color .25s, box-shadow .25s, transform .25s;
}

.modules__tab:hover {
    color: #717680;
    border-color: #b5b8be;
    background: rgba(255, 255, 255, .6);
}

.modules__tab:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.modules__tab.is-active {
    border: 1.5px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, #4f9cf9, #34d399) border-box;
    color: var(--color-primary);
    box-shadow: 0 18px 40px -12px rgba(16, 24, 40, .14);
    transform: scale(1.02);
}

.modules__panels {
    min-width: 0;
    padding-left: 24px;
}

.modules__panel.is-active {
    animation: module-in .4s ease both;
}

.modules__title {
    margin: 36px 0 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.modules__text {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.modules__image {
    width: 100%;
    max-width: 724px;
    height: auto;
}

@keyframes module-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modules__tab,
    .modules__panel.is-active {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features {
    padding: 50px var(--gutter) 64px;
    background: #f8f8f9;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 40px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.features__item {
    text-align: center;
}

.features__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
}

.features__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.features__text {
    max-width: 390px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.feature_heading {
    color: #00846B;
    font-family: "Inter";
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
}
/* ==========================================================================
   Platform (dark features section)
   ========================================================================== */
.platform {
    position: relative;
    overflow: hidden;
    padding: 96px var(--gutter) 124px;
    background: var(--color-dark);
    color: #fff;
}

.platform__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.platform__eyebrow {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #d0d5dd;
}

.platform__title {
    margin: 0 0 24px;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.platform__text {
    max-width: 780px;
    margin: 0 0 92px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-dark-muted);
}

.platform__list {
    position: relative;
    z-index: 1;
    max-width: min(580px, 46vw);
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid #2a2e35;
}

.platform__item {
    position: relative;
    padding: 18px 0 20px 22px;
    cursor: default;
}

/* Green indicator bar on the active item */
.platform__item::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #22a67e;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
}

.platform__item.is-active::before {
    transform: scaleY(1);
}

.platform__item-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
}

.platform__item-text {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--color-dark-muted);
    transition: color .3s;
}

.platform__item.is-active .platform__item-text {
    color: #b3b9c2;
}

.platform__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    color: #d0d5dd;
    transition: color .2s;
}

.platform__link svg {
    color: #667085;
    transition: transform .2s, color .2s;
}

.platform__link:hover {
    color: #fff;
}

.platform__link:hover svg {
    color: #22a67e;
    transform: translateX(3px);
}

.platform__image {
    position: absolute;
    left: max(51%, calc(50% + 18px));
    bottom: -120px;
    width: min(716px, 50vw);
    height: auto;
    pointer-events: none;
}

/* ==========================================================================
   Integrations
   ========================================================================== */
.integrations {
    padding: 52px var(--gutter) 50px;
    background: #f8f8f9;
    text-align: center;
}

.integrations__title {
    margin: 0 0 56px;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.integrations__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin: 0 0 58px;
    padding: 0;
    list-style: none;
}

.integrations__item img {
    width: 72px;
    height: 72px;
    transition: transform .2s ease, filter .2s ease;
}

.integrations__item img:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 10px 14px rgba(16, 24, 40, .1));
}

.integrations__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.integrations__cta p {
    margin: 0;
    font-size: 20px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
/* ==========================================================================
   Benefits ("Why teams switch to HR SOLS")
   ========================================================================== */
.benefits {
    padding: 96px var(--gutter) 64px;
    text-align: center;
}

.benefits__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.benefits__text {
    max-width: 720px;
    margin: 0 auto 64px;
    font-size: 20px;
    color: var(--color-text-muted);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1216px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.benefit {
    padding: 32px;
    border: 1px solid #e9eaeb;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .25s, border-color .25s;
}

.benefit:hover {
    border-color: #d5d7da;
    box-shadow: 0 12px 24px -8px rgba(16, 24, 40, .08);
}

.benefit__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #dcfae6;
    color: var(--color-primary);
}

.benefit__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.benefit__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

@media (max-width: 960px) {
    .benefits {
        padding-top: 64px;
    }

    .benefits__text {
        margin-bottom: 40px;
        font-size: 18px;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

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

    .benefit {
        padding: 24px;
    }
}

.reviews {
    padding: 96px var(--gutter) 64px;
    text-align: center;
}

.reviews__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.reviews__text {
    margin: 0 0 64px;
    font-size: 20px;
    color: var(--color-text-muted);
}

/* Masonry columns: up to three (--review-columns), centred when there are fewer reviews */
.reviews__grid {
    --review-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--review-columns), minmax(0, 1fr));
    align-items: start;
    gap: 32px;
    max-width: calc(var(--review-columns) * 384px + (var(--review-columns) - 1) * 32px);
    margin: 0 auto;
    text-align: left;
}

/* A long wall of reviews is capped and faded out at the bottom; a few are shown in full */
.reviews__grid--fade {
    max-height: 920px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent);
}

.reviews__column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reviews__column:nth-child(1) {
    margin-top: 32px;
}

.reviews__column:nth-child(3) {
    margin-top: 40px;
}

.review {
    margin: 0;
    padding: 32px 31px;
    border: 1px solid #e9eaeb;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .25s, border-color .25s;
}

.review:hover {
    border-color: #d5d7da;
    box-shadow: 0 12px 24px -8px rgba(16, 24, 40, .08);
}

.review__company {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.review__logo {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

/* No uploaded logo: the company's first letter */
.review__logo--letter {
    display: grid;
    place-items: center;
    background: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.review__quote {
    margin: 0 0 48px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review__author img,
.review__initials {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* No uploaded photo: the reviewer's initials */
.review__initials {
    display: grid;
    place-items: center;
    background: #dcfae6;
    font-size: 16px;
    font-weight: 600;
    color: #067647;
}

.review__name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
}

.review__role {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Insights (blog slider)
   ========================================================================== */
.insights {
    --edge: max(var(--gutter), calc((100vw - 1216px) / 2));
    padding: 96px 0 96px;
}

.insights__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1216px;
    margin: 0 auto 64px;
    padding: 0 var(--gutter);
    box-sizing: content-box;
}

.insights__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.insights__text {
    max-width: 720px;
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.insights__header .btn {
    flex-shrink: 0;
}

/* Track starts at the container edge and bleeds off the right side */
.insights__track {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0 var(--edge) 4px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--edge);
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.insights__track::-webkit-scrollbar {
    display: none;
}

.post {
    flex: 0 0 384px;
    max-width: 82vw;
    /* Let long one-line titles truncate instead of widening the card */
    min-width: 0;
    scroll-snap-align: start;
}

.post__link {
    display: block;
}

.post__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    margin-bottom: 24px;
    border-radius: 16px;
    object-fit: cover;
    transition: transform .4s ease;
}

.post__meta {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.post__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.post__title span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post__title svg {
    flex-shrink: 0;
    color: #a4a7ae;
    transition: color .2s, transform .2s;
}

.post__link:hover .post__title svg {
    color: var(--color-primary);
    transform: translate(2px, -2px);
}

.post__link:hover .post__image {
    transform: scale(1.015);
}

.post__excerpt {
    display: -webkit-box;
    margin: 0 0 24px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 2px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
}

.tag--teal   { color: #0e7a68; background: #d3f2ea; border-color: #9fdccb; }
.tag--indigo { color: #3538cd; background: #eef4ff; border-color: #c7d7fe; }
.tag--pink   { color: #c11574; background: #fdf2fa; border-color: #fcceee; }
.tag--blue   { color: #026aa2; background: #f0f9ff; border-color: #b9e6fe; }
.tag--green  { color: #067647; background: #ecfdf3; border-color: #abefc6; }

.insights__nav {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-left: var(--edge);
}

.slider-btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid #e9eaeb;
    border-radius: 50%;
    background: #fff;
    color: #717680;
    cursor: pointer;
    transition: border-color .2s, color .2s, opacity .2s;
}

.slider-btn:hover:not(:disabled) {
    border-color: #a4a7ae;
    color: var(--color-text);
}

.slider-btn:disabled {
    opacity: .4;
    cursor: default;
}

.slider-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: 96px var(--gutter);
    text-align: center;
}

.faq__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.faq__text {
    max-width: 740px;
    margin: 0 auto 64px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.faq__list {
    max-width: 768px;
    margin: 0 auto 64px;
    text-align: left;
}

.faq__item + .faq__item {
    border-top: 1px solid #e9eaeb;
}

.faq__item {
    padding: 28px 0;
}

.faq__item:first-child {
    padding-top: 0;
}

.faq__item:last-child {
    padding-bottom: 0;
}

.faq__question {
    margin: 0;
}

.faq__question button {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: 600 16px/1.5 var(--font-sans);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
}

.faq__question button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq__icon {
    flex-shrink: 0;
    color: #a4a7ae;
    transition: color .2s;
}

.faq__question button:hover .faq__icon {
    color: var(--color-primary);
}

.faq__icon-v {
    transform-origin: center;
    transition: transform .25s ease;
}

.faq__item.is-open .faq__icon-v {
    transform: scaleY(0);
}

/* Height animates via grid rows 0fr -> 1fr */
.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.faq__item.is-open .faq__answer {
    grid-template-rows: 1fr;
}

.faq__answer > div {
    overflow: hidden;
}

.faq__answer p {
    margin: 0;
    padding: 4px 48px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.faq__cta {
    max-width: 1216px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    border-radius: 16px;
    background: #f8f8f9;
}

.faq__avatars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 32px;
}

.faq__avatars img {
    width: 48px;
    height: 48px;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.faq__avatars img:nth-child(2) {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: 0 -16px;
}

.faq__cta-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.faq__cta-text {
    max-width: 780px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.faq__cta-call {
    margin: 16px 0 0;
    font-size: 16px;
    color: var(--color-text-muted);
}

/* "Still have questions?" card on its own, outside the FAQ */
.questions {
    padding: 96px var(--gutter);
    text-align: center;
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero__image {
    display: block;
    width: 100%;
    max-width: 662px;
    height: auto;
    margin: 64px auto 0;
}

/* The header already ends in the image, so the logos follow a little closer */
.about-hero + .brands {
    padding-top: 48px;
}

.story {
    padding: 96px var(--gutter);
}

/* The logos section's bottom padding already provides the gap */
.brands + .story {
    padding-top: 0;
}

.story__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.story__eyebrow {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.story__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 36px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.story__lead {
    max-width: 768px;
    margin: 0 0 64px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.story__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.story__column p,
.story__column ul {
    margin: 0 0 18px;
}

.story__column > :last-child {
    margin-bottom: 0;
}

.story__column ul {
    padding-left: 24px;
}

.story__column li + li {
    margin-top: 4px;
}

@media (max-width: 960px) {
    .story__lead {
        margin-bottom: 40px;
    }

    .story__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .about-hero__image {
        margin-top: 40px;
    }

    .story,
    .questions {
        padding: 64px var(--gutter);
    }

    .story__lead {
        font-size: 18px;
    }

    .story__columns {
        font-size: 16px;
    }
}

/* "Powered by MeshSq" card: green copy panel, logo panel with a decorative circle */
.powered {
    padding: 0 var(--gutter) 96px;
}

.powered__card {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    max-width: 1216px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fafafa;
}

.powered__content {
    padding: 56px;
    background: #01735a;
    color: #fff;
}

.powered__stars {
    display: flex;
    gap: 4px;
    margin: 0 0 24px;
    color: #fdb022;
}

.powered__stars svg {
    display: block;
    fill: currentColor;
}

.powered__title {
    margin: 0 0 8px;
    font-size: clamp(30px, 2.8vw, 36px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.powered__title strong {
    font-weight: 700;
}

.powered__subtitle {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
}

.powered__text {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

.powered__tagline {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.powered__tagline::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 24px;
    border-radius: 2px;
    background: #fff;
}

.powered__brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
    overflow: hidden;
}

.powered__brand::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #f1e3fd;
}

.powered__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 281px;
}

.powered__logo img {
    display: block;
    width: 100%;
    height: auto;
}

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

    .powered__brand {
        padding: 48px 32px 64px;
    }
}

@media (max-width: 600px) {
    .powered {
        padding-bottom: 64px;
    }

    .powered__content {
        padding: 36px 24px;
    }

    .powered__subtitle {
        font-size: 18px;
    }

    .powered__text,
    .powered__tagline {
        font-size: 16px;
    }

    .powered__brand::after {
        right: -50px;
        bottom: -70px;
        width: 160px;
        height: 160px;
    }
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
/* ==========================================================================
   Book a demo
   ========================================================================== */
.demo {
    padding: 96px var(--gutter);
    background: #f9fafb;
    border-top: 1px solid #eaecf0;
}

.demo__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
    max-width: 1216px;
    margin: 0 auto;
}

.demo__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.demo__text {
    margin: 0 0 32px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.demo__points {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo__points li {
    position: relative;
    padding-left: 36px;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-muted);
}

.demo__points li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfae6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23079669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.demo__call {
    margin: 32px 0 0;
    font-size: 18px;
    color: var(--color-text-muted);
}

.demo__call a,
.faq__cta-call a {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.demo__call a:hover,
.faq__cta-call a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.demo__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
}

.demo__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.demo__field--full,
.demo__submit,
.demo__status {
    grid-column: 1 / -1;
}

.demo__field label {
    font-size: 14px;
    font-weight: 500;
    color: #344054;
}

.demo__field label span {
    font-weight: 400;
    color: #667085;
}

.demo__field input,
.demo__field select,
.demo__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    font: 400 16px var(--font-sans);
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .2s, box-shadow .2s;
}

.demo__field input,
.demo__field select {
    height: 44px;
}

.demo__field textarea {
    min-height: 112px;
    resize: vertical;
}

.demo__field input:focus,
.demo__field select:focus,
.demo__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(7, 150, 105, .15);
}

.demo__submit {
    justify-content: center;
    width: 100%;
}

.demo__status {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.demo__status--ok {
    background: #ecfdf3;
    color: #067647;
}

.demo__status--error {
    background: #fef3f2;
    color: #b42318;
}

/* Under the demo date and time pickers */
.demo__hint {
    grid-column: 1 / -1;
    margin: -10px 0 0;
    font-size: 13px;
    color: #667085;
}

.demo__field select:disabled {
    background: #f9fafb;
    color: #98a2b3;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .demo {
        padding: 64px var(--gutter);
    }

    .demo__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .demo__form {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.newsletter {
    padding: 48px var(--gutter) 52px;
    background: var(--color-dark);
    color: #fff;
}

.newsletter__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    max-width: 1216px;
    margin: 0 auto;
}

.newsletter__title {
    margin: 0 0 16px;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 600;
    line-height: 1.27;
}

.newsletter__text {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-dark-muted);
}

.newsletter__form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
    width: 420px;
    max-width: 100%;
}

.newsletter__form input[type="email"] {
    flex: 1 1 268px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #373a41;
    border-radius: 8px;
    background: #0c0e12;
    font: 400 16px var(--font-sans);
    color: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.newsletter__form input[type="email"]::placeholder {
    color: #85888e;
}

.newsletter__form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(7, 150, 105, .25);
}

.newsletter__form .btn {
    height: 44px;
}

.newsletter__status {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
}

.newsletter__status--ok {
    color: #47cd89;
}

.newsletter__status--error {
    color: #f97066;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 64px var(--gutter) 48px;
    background: #0c0e12;
    color: #94979c;
}

.footer__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 384px) repeat(5, minmax(0, 1fr));
    gap: 48px 0;
    padding-bottom: 64px;
}

.footer__brand {
    padding-right: 64px;
}

.footer__logo img {
    width: 115px;
    height: auto;
}

.footer__brand p {
    margin: 32px 0 0;
    font-size: 16px;
    line-height: 1.5;
}

.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #cecfd2;
    transition: color .2s;
}

.footer__phone:hover {
    color: #fff;
}

.footer__heading {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.43;
    color: #94979c;
}

.footer__col ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__col li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__col a {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #cecfd2;
    transition: color .2s;
}

.footer__col a:hover {
    color: #fff;
}

.footer__badge {
    padding: 1px 7px;
    border: 1px solid #61656c;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #cecfd2;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid #22262f;
}

.footer__bottom p {
    margin: 0;
    font-size: 16px;
}

/* Wraps as one unit, so the separator never dangles at a line end */
.footer__credit {
    white-space: nowrap;
}

.footer__credit a {
    font-weight: 600;
    color: #cecfd2;
    transition: color .2s;
}

.footer__credit a:hover {
    color: #fff;
}

/* Narrow screens: the credit gets its own line, without the separator */
@media (max-width: 600px) {
    .footer__credit {
        display: block;
        margin-top: 4px;
    }

    .footer__credit-sep {
        display: none;
    }
}

.footer__social {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__social a {
    display: block;
    color: #85888e;
    transition: color .2s;
}

.footer__social a:hover {
    color: #fff;
}

.footer a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Page header (left-aligned intro for inner pages)
   ========================================================================== */
.page-header {
    padding: 96px var(--gutter) 64px;
}

.page-header__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.page-header__eyebrow {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.page-header__title {
    margin: 0 0 24px;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-header__text {
    max-width: 768px;
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Centred variant (e.g. contact page) */
.page-header--center {
    text-align: center;
}

.page-header--center .page-header__text {
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Blog page: recent posts (featured left, two stacked right)
   -------------------------------------------------------------------------- */
.recent {
    padding: 0 var(--gutter) 96px;
}

.recent__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.recent__title {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.33;
}

.recent__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.recent__side {
    display: grid;
    gap: 32px;
}

.recent-post__link {
    display: block;
}

.recent-post__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    transition: transform .4s ease;
}

.recent-post__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 16px;
}

.recent-post__link:hover .recent-post__image {
    transform: scale(1.015);
}

.recent-post--featured .recent-post__image {
    aspect-ratio: 592 / 395;
    margin-bottom: 24px;
}

.recent-post__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.recent-post__title svg {
    flex-shrink: 0;
    color: #a4a7ae;
    transition: color .2s, transform .2s;
}

.recent-post__link:hover .recent-post__title svg {
    color: var(--color-primary);
    transform: translate(2px, -2px);
}

.recent-post__link:hover .recent-post__title span {
    color: var(--color-primary);
}

.recent-post__title span {
    transition: color .2s;
}

.recent-post__excerpt {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Side cards: image left, text right, everything clamped to two lines */
.recent-post--side .recent-post__link {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.recent-post--side .recent-post__image {
    aspect-ratio: 320 / 214;
}

.recent-post--side .recent-post__title span,
.recent-post--side .recent-post__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-post--side .recent-post__excerpt {
    margin-bottom: 20px;
}

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

@media (max-width: 600px) {
    .recent {
        padding-bottom: 64px;
    }

    .recent-post--side .recent-post__link {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   Blog page: all posts grid + pagination
   -------------------------------------------------------------------------- */
.all-posts {
    padding: 0 var(--gutter) 32px;
}

.all-posts__inner {
    max-width: 1216px;
    margin: 0 auto;
}

.all-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    margin: 0 0 64px;
    padding: 0;
    list-style: none;
}

/* Grid cards: titles wrap instead of truncating, excerpt clamps at 2 lines */
.post--grid {
    max-width: none;
}

.post--grid .post__title span {
    white-space: normal;
}

.post--grid .post__excerpt {
    -webkit-line-clamp: 2;
}

.tag--gray   { color: #414651; background: #fafafa; border-color: #e9eaeb; }
.tag--orange { color: #b93815; background: #fef6ee; border-color: #f9dbaf; }

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e9eaeb;
}

.pagination__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    font-size: 14px;
    font-weight: 600;
    color: #535862;
    transition: color .2s;
}

.pagination__step:last-child {
    justify-self: end;
}

a.pagination__step:hover {
    color: var(--color-text);
}

.pagination__step.is-disabled {
    color: #d5d7da;
    cursor: default;
}

.pagination__pages {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__page,
.pagination__gap {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #717680;
}

.pagination__page {
    transition: background-color .2s, color .2s;
}

.pagination__page:hover,
.pagination__page.is-current {
    background: #fafafa;
    color: #252b37;
}

.pagination__step:focus-visible,
.pagination__page:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 1080px) {
    .all-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .all-posts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Arrows only; page numbers collapse to "Page x of y" */
    .pagination {
        grid-template-columns: auto 1fr auto;
    }

    .pagination__pages li {
        display: none;
    }

    .pagination__pages {
        justify-content: center;
    }

    .pagination__pages::before {
        content: attr(data-label);
        font-size: 14px;
        font-weight: 500;
        color: #414651;
    }
}

.navbar__dropdown a[aria-current="page"] {
    background: #f8f8f9;
}

@media (max-width: 960px) {
    .page-header {
        padding: 64px var(--gutter) 48px;
    }

    .page-header__text {
        font-size: 18px;
    }
}

/* ==========================================================================
   Pricing page
   ========================================================================== */
.pricing {
    padding: 96px var(--gutter) 64px;
}

.pricing__header {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.pricing__eyebrow {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.pricing__title {
    margin: 0 0 24px;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pricing__text {
    margin: 0 0 48px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Segmented Monthly / Annual switch */
.billing-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid #e9eaeb;
    border-radius: 10px;
    background: #fafafa;
}

.billing-toggle__option {
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: 600 16px/1.5 var(--font-sans);
    color: #717680;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.billing-toggle__option:hover {
    color: #414651;
}

.billing-toggle__option[aria-pressed="true"] {
    background: #fff;
    color: #414651;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
}

.billing-toggle__option:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.billing-toggle__saving {
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid #9fdccb;
    border-radius: 999px;
    background: #d3f2ea;
    font-size: 12px;
    font-weight: 500;
    color: #0e7a68;
}

@media (max-width: 960px) {
    .pricing {
        padding-top: 64px;
    }

    .pricing__text {
        margin-bottom: 36px;
        font-size: 18px;
    }
}

/* Billing switch: show only the prices for the selected period */
[data-billing="monthly"] [data-for="annual"],
[data-billing="annual"] [data-for="monthly"] {
    display: none;
}

/* --------------------------------------------------------------------------
   Plan comparison table
   -------------------------------------------------------------------------- */
.compare {
    max-width: 1216px;
    margin: 64px auto 0;
}

.compare__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.compare__table th,
.compare__table td {
    padding: 0;
    font-weight: inherit;
    text-align: left;
}

/* Plan cells: content sits on the left, values centre under the buttons */
.compare__table [data-col] {
    padding-right: 32px;
}

.compare__names th,
.compare__names td {
    position: sticky;
    top: var(--nav-height);
    z-index: 2;
    padding-top: 16px;
    padding-bottom: 16px;
    background: #fff;
    box-shadow: inset 0 -1px 0 #e9eaeb;
}

.compare__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: 600 20px/1.5 var(--font-sans);
    color: var(--color-text);
    cursor: default;
}

.compare__badge {
    padding: 2px 10px;
    border: 1px solid #9fdccb;
    border-radius: 999px;
    background: #d3f2ea;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #0e7a68;
}

.compare__plans td {
    padding-top: 32px;
    padding-bottom: 32px;
    vertical-align: top;
}

/* Amount on one line, "per month" underneath */
.compare__price {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.compare__figure {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
}

/* Sits just above the amount (in the cell's top padding) so a four-plan column never wraps the price */
.compare__from {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.compare__currency {
    font-size: 18px;
    font-weight: 600;
}

.compare__amount {
    font-size: clamp(28px, 2.9vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.compare__period {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-muted);
}

.compare__period small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
}

/* Room for two lines so the buttons line up across plans when a detail wraps */
.compare__details {
    display: grid;
    align-content: start;
    min-height: 3em;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.compare__btn {
    justify-content: center;
    width: 100%;
}

.compare__btn + .compare__btn {
    margin-top: 12px;
}

.compare__heading th {
    padding: 48px 24px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

tbody:first-of-type + .compare__group .compare__heading th {
    padding-top: 24px;
}

.compare__group {
    border-bottom: 1px solid #e9eaeb;
}

.compare__row {
    height: 64px;
}

.compare__row:nth-child(even) {
    background: #fafafa;
}

.compare__row th {
    padding-left: 24px;
    font-weight: 500;
    color: var(--color-text);
}

.compare__row td {
    text-align: center;
    color: var(--color-text-muted);
}

.compare__check {
    display: block;
    margin: 0 auto;
    color: #079455;
}

.compare__dash {
    color: #a4a7ae;
}

.compare__footer td {
    padding-top: 40px;
}

/* Feature info tooltip */
.tip {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #a4a7ae;
    vertical-align: -4px;
    cursor: help;
}

.tip:hover,
.tip:focus-visible {
    color: #535862;
}

.tip:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--color-text);
    font: 500 12px/1.5 var(--font-sans);
    color: #fff;
    text-align: left;
    white-space: normal;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none;
}

.tip:hover::after,
.tip:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
    .compare__table [data-col] {
        padding-right: 24px;
    }
}

/* Small screens: one plan at a time, chosen with the plan tabs */
@media (max-width: 768px) {
    .compare {
        margin-top: 40px;
    }

    .compare__table,
    .compare__table thead,
    .compare__table tbody,
    .compare__table tfoot,
    .compare__table tr {
        display: block;
    }

    .compare__table tr {
        display: flex;
        align-items: center;
    }

    .compare__label:empty {
        display: none;
    }

    .compare__table [data-col] {
        padding-right: 0;
    }

    /* One selector pair per plan key in config/pricing.php */
    .compare[data-plan="basic"] tbody [data-col]:not([data-col="basic"]),
    .compare[data-plan="standard"] tbody [data-col]:not([data-col="standard"]),
    .compare[data-plan="premium"] tbody [data-col]:not([data-col="premium"]),
    .compare[data-plan="enterprise"] tbody [data-col]:not([data-col="enterprise"]),
    .compare[data-plan="basic"] tfoot [data-col]:not([data-col="basic"]),
    .compare[data-plan="standard"] tfoot [data-col]:not([data-col="standard"]),
    .compare[data-plan="premium"] tfoot [data-col]:not([data-col="premium"]),
    .compare[data-plan="enterprise"] tfoot [data-col]:not([data-col="enterprise"]) {
        display: none;
    }

    /* Plan names become a sticky segmented tab bar */
    .compare__table thead {
        position: sticky;
        top: var(--nav-height);
        z-index: 2;
        padding: 12px 0;
        background: #fff;
        box-shadow: inset 0 -1px 0 #e9eaeb;
    }

    .compare__names {
        gap: 4px;
        padding: 4px;
        border: 1px solid #e9eaeb;
        border-radius: 10px;
        background: #fafafa;
    }

    /* Tabs size to their labels so all four plan names fit on one line */
    .compare__names th {
        position: static;
        flex: 1 1 auto;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .compare__tab {
        justify-content: center;
        width: 100%;
        min-height: 40px;
        padding: 6px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        color: #717680;
        cursor: pointer;
        transition: background-color .2s, color .2s, box-shadow .2s;
    }

    .compare__tab[aria-pressed="true"] {
        background: #fff;
        color: var(--color-text);
        box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
    }

    .compare__badge {
        display: none;
    }

    .compare__plans td,
    .compare__footer td {
        flex: 1;
    }

    .compare__plans td {
        padding: 28px 0 24px;
    }

    .compare__text {
        display: block;
        min-height: 0;
    }

    .compare__heading th {
        flex: 1;
        padding: 32px 12px 12px;
    }

    .compare__row {
        min-height: 56px;
        height: auto;
        padding: 8px 0;
    }

    .compare__row th {
        flex: 1;
        padding-left: 12px;
    }

    .compare__row td {
        flex: 0 0 38%;
        padding-right: 12px;
    }

    .compare__footer td {
        padding-top: 32px;
    }

    /* Tooltips open above the feature name, never wider than it: anchored to the
       icon they ran off the right edge and made phones zoom the page out */
    .compare__row th {
        position: relative;
    }

    .tip {
        position: static;
    }

    .tip::after {
        left: 0;
        max-width: 100%;
        transform: translate(0, 4px);
    }

    .tip:hover::after,
    .tip:focus-visible::after {
        transform: none;
    }
}

/* Very narrow phones: let a long plan name wrap rather than overflow the tab bar */
@media (max-width: 359px) {
    .compare__tab {
        padding: 6px 4px;
        font-size: 13px;
        white-space: normal;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    :root {
        --nav-height: 68px;
    }

    .navbar__burger {
        display: flex;
    }

    /* Menu becomes a full-width panel under the bar */
    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        max-height: calc(100vh - var(--nav-height));
        padding: 16px var(--gutter) 24px;
        overflow-y: auto;
        border-bottom: 1px solid #e9eaeb;
        background: #fff;
        box-shadow: 0 16px 24px -12px rgba(16, 24, 40, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .navbar.is-open .navbar__menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .navbar__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar__link {
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
        font-size: 17px;
    }

    .navbar__dropdown {
        position: static;
        display: none;
        width: auto;
        padding: 0 0 8px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .navbar__dropdown::before {
        display: none;
    }

    .navbar__item.is-open .navbar__dropdown {
        display: block;
    }

    .navbar__dropdown a {
        padding: 8px 12px;
    }

    .navbar__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar__actions .btn {
        justify-content: center;
    }
}

@media (max-width: 960px) {
    .hero {
        min-height: 0;
        padding: 48px var(--gutter) 72px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero__content {
        max-width: 640px;
    }

    .hero__glow--green {
        left: -300px;
        bottom: 30%;
    }

    .hero__glow--violet {
        right: -360px;
        top: auto;
        bottom: -120px;
    }

    .hero__chip--top {
        top: -20px;
        left: 12px;
    }

    .hero__chip--bottom {
        right: 12px;
        bottom: -24px;
    }

    .brands {
        padding: 64px var(--gutter) 80px;
    }

    .brands__row {
        gap: 16px 24px;
    }

    .brands__row + .brands__row {
        margin-top: 16px;
    }

    .stats__card {
        padding: 40px 24px;
    }

    .stats__text {
        font-size: 16px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats__tagline {
        font-size: 16px;
    }

    .modules {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 64px;
        padding: 32px 0 0;
    }

    /* Pills become a horizontally scrollable row */
    .modules__tabs {
        flex-direction: row;
        gap: 10px;
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .modules__tabs::-webkit-scrollbar {
        display: none;
    }

    .modules__tab {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        height: 44px;
        margin-left: 0;
        padding: 0 18px;
        font-size: 15px;
    }

    .modules__tab.is-active {
        transform: none;
        box-shadow: 0 8px 20px -10px rgba(16, 24, 40, .2);
    }

    .modules__panels {
        padding-left: var(--gutter);
    }

    .modules__title {
        margin-top: 20px;
    }

    .modules__text {
        padding-right: var(--gutter);
        font-size: 16px;
    }

    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 32px;
    }

    .reviews {
        padding-top: 64px;
    }

    .reviews__text {
        margin-bottom: 40px;
        font-size: 18px;
    }

    /* Single column, offsets removed */
    .reviews__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 560px;
    }

    .reviews__grid--fade {
        max-height: 1400px;
    }

    .reviews__column {
        gap: 20px;
    }

    .reviews__column:nth-child(n) {
        margin-top: 0;
    }

    .review {
        padding: 24px;
    }

    .review__quote {
        margin-bottom: 28px;
    }

    .insights {
        padding: 64px 0;
    }

    .insights__header {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .insights__text {
        font-size: 18px;
    }

    .insights__track {
        gap: 20px;
    }

    .insights__nav {
        gap: 16px;
    }

    .faq {
        padding: 64px var(--gutter);
    }

    .faq__text {
        margin-bottom: 40px;
        font-size: 18px;
    }

    .faq__answer p {
        padding-right: 0;
    }

    .faq__cta {
        padding: 32px 20px;
    }

    .faq__cta-text {
        font-size: 16px;
    }

    .newsletter__inner {
        flex-direction: column;
    }

    .newsletter__text {
        font-size: 18px;
    }

    .newsletter__form {
        width: 100%;
        max-width: 480px;
    }

    /* Brand on its own row, link columns in a 3-up grid */
    .footer__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        max-width: 400px;
    }

    .platform {
        padding: 64px var(--gutter) 0;
    }

    .platform__text {
        margin-bottom: 48px;
        font-size: 18px;
    }

    .platform__list {
        max-width: none;
    }

    /* Image drops below the list and bleeds off the right edge */
    .platform__image {
        position: static;
        width: min(640px, 110%);
        max-width: none;
        margin: 48px 0 -18% auto;
        margin-right: calc(var(--gutter) * -1);
    }
}

@media (max-width: 600px) {
    .features__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .integrations__list {
        gap: 16px;
    }

    .integrations__item img {
        width: 60px;
        height: 60px;
    }

    .integrations__cta {
        flex-direction: column;
    }

    .integrations__cta p {
        font-size: 18px;
    }

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

    .newsletter__form .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 32px;
    }

    .hero__text {
        margin-bottom: 28px;
        font-size: 17px;
    }

    .hero__actions {
        margin-bottom: 32px;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero__frame {
        border-radius: 18px;
        box-shadow: 0 24px 48px -24px rgba(16, 24, 40, .28), 0 0 0 5px rgba(255, 255, 255, .6);
    }

    /* Compact chips: title only */
    .hero__chip {
        gap: 8px;
        padding: 8px 12px 8px 8px;
        border-radius: 12px;
    }

    .hero__chip-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .hero__chip-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero__chip strong {
        font-size: 13px;
    }

    .hero__chip small {
        display: none;
    }

    .brands__item img {
        width: 140px;
    }

    /* Barely visible this small; hiding it also keeps phones without overflow-x: clip from zooming out */
    .brands__glow {
        display: none;
    }
}

/* ==========================================================================
   Blog post page
   ========================================================================== */
.article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 720px;
}

.article-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px max(var(--gutter), calc((100vw - 1216px) / 2));
}

.article-hero__meta {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.article-hero__title {
    max-width: 560px;
    margin: 0 0 24px;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.article-hero__excerpt {
    max-width: 480px;
    margin: 0 0 48px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.article-hero__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-hero__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.article-hero__avatar:is(img) {
    object-fit: cover;
}

.article-hero__author strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.article-hero__author span span {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
}

.article-hero__media {
    display: grid;
    place-items: center;
    padding: 80px 64px;
    background: #fafafa;
}

.article-hero__media img {
    width: 400px;
    max-width: 100%;
    aspect-ratio: 400 / 560;
    height: auto;
    object-fit: cover;
}

.article__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 96px var(--gutter) 64px;
    box-sizing: content-box;
}

.article__tags {
    margin-top: 40px;
}

/* "Share this post" bar at the end of the article */
.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9eaeb;
}

.share__label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #535862;
}

.share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share__copy,
.share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border: 1px solid #d5d7da;
    border-radius: 8px;
    background: #fff;
    color: #414651;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: background-color .2s, border-color .2s, color .2s;
}

.share__copy {
    padding: 0 14px;
    font: 600 14px/1 var(--font-sans);
    cursor: pointer;
}

.share__icon {
    width: 40px;
    color: #a4a7ae;
}

.share__copy:hover,
.share__icon:hover {
    background: #fafafa;
    color: var(--color-text);
}

.share__copy.is-copied {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.share__copy:focus-visible,
.share__icon:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Long-form text from the editor */
.prose {
    font-size: 18px;
    line-height: 1.7;
    color: #414651;
}

.prose > :first-child {
    margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose figure {
    margin: 0 0 20px;
}

.prose h2 {
    margin: 48px 0 16px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.27;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.prose h3 {
    margin: 32px 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.prose strong,
.prose b {
    color: var(--color-text);
    font-weight: 600;
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose li::marker {
    color: var(--color-primary);
}

.prose blockquote {
    margin: 40px 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--color-primary);
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.33;
    color: var(--color-text);
}

.prose blockquote cite {
    display: block;
    margin-top: 28px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.prose img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.prose figure {
    margin: 40px 0;
}

.prose figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.43;
    color: var(--color-text-muted);
}

.prose figure figcaption a {
    color: inherit;
}

/* Grey callout box; its first bold line acts as the heading */
.prose aside {
    margin: 40px 0;
    padding: 28px 32px;
    border-radius: 16px;
    background: #fafafa;
    font-size: 16px;
    line-height: 1.6;
}

.prose aside > strong:first-child {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
}

.prose ol li::marker {
    color: var(--color-text-muted);
    font-weight: 500;
}

.prose h3 + p,
.prose h2 + p {
    margin-top: 0;
}

.prose pre {
    padding: 16px 20px;
    overflow-x: auto;
    border-radius: 12px;
    background: #f5f5f6;
    font-size: 15px;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}

.prose hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #e9eaeb;
}

.preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 10px var(--gutter);
    background: #fffaeb;
    border-bottom: 1px solid #fedf89;
    font-size: 14px;
    color: #93370d;
}

.preview-bar a {
    font-weight: 600;
    text-decoration: underline;
}

.post__image--empty {
    display: block;
    aspect-ratio: 3 / 2;
    margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf3, #eef4ff);
}

.blog-empty {
    padding: 48px 0;
    font-size: 18px;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 960px) {
    .article-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .article-hero__content {
        padding: 56px var(--gutter) 48px;
    }

    .article-hero__excerpt {
        margin-bottom: 32px;
        font-size: 18px;
    }

    .article-hero__media {
        padding: 32px var(--gutter);
    }

    .article-hero__media img {
        width: 100%;
        max-width: 560px;
        aspect-ratio: 4 / 3;
    }

    .article__body {
        padding-top: 56px;
    }

    .prose {
        font-size: 17px;
    }

    .prose h2 {
        font-size: 24px;
    }
}

/* ==========================================================================
   Contact page: form card beside the other ways to reach us
   ========================================================================== */
.contact {
    padding: 0 var(--gutter) 96px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: start;
    max-width: 1216px;
    margin: 0 auto;
}

/* The contact section's bottom padding already separates it from the FAQ */
.contact + .faq {
    padding-top: 0;
}

/* No contact channels configured: the form sits alone, centred */
.contact__inner--single {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.contact-form {
    display: grid;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
}

.contact__info {
    padding-top: 8px;
}

.contact__info-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.contact__info-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.contact__channels {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-form__status {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form__status--ok {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.contact-form__status--error {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.contact-form__submit {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #414651;
}

.field__req {
    color: var(--color-primary);
}

.field__input,
.field__phone {
    width: 100%;
    border: 1px solid #d5d7da;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
    transition: border-color .2s, box-shadow .2s;
}

.field__input {
    height: 44px;
    padding: 10px 14px;
    font: 400 16px/1.5 var(--font-sans);
    color: var(--color-text);
}

.field__textarea {
    height: auto;
    min-height: 134px;
    resize: vertical;
}

.field__input::placeholder,
.field__phone input::placeholder {
    color: #717680;
}

.field__input:focus,
.field__phone:focus-within {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(7, 150, 105, .2);
}

.field__input.is-invalid,
.field__phone.is-invalid {
    border-color: #fda29b;
}

/* Country code select + number in one box */
.field__phone {
    display: flex;
    align-items: center;
    height: 44px;
    /* As a grid item it would otherwise refuse to shrink below select + input width on small phones */
    min-width: 0;
}

.field__phone select {
    flex-shrink: 0;
    height: 100%;
    padding: 0 26px 0 14px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a4a7ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
    font: 400 16px var(--font-sans);
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
}

.field__phone select:focus {
    outline: none;
}

.field__phone input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 6px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    font: 400 16px var(--font-sans);
    color: var(--color-text);
}

.field__phone input:focus {
    outline: none;
}

.field__check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #535862;
    cursor: pointer;
}

.field__check input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.field__check a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.field__error {
    margin: 0;
    font-size: 14px;
    line-height: 1.43;
    color: #d92d20;
}

@media (max-width: 960px) {
    .contact__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .contact__info {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .contact {
        padding-bottom: 64px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---------- Contact page: one way to reach us ---------- */
.channel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.channel__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(10, 13, 18, .18), inset 0 -2px 0 rgba(10, 13, 18, .05), 0 1px 2px rgba(10, 13, 18, .05);
}

.channel__body {
    min-width: 0;
}

.channel__title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.channel__text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.channel__link {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-primary-hover);
    overflow-wrap: anywhere;
    transition: color .2s;
}

.channel__link:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.channel__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---------- Contact page: office map ---------- */
.offices {
    padding: 32px var(--gutter) 0;
}

.offices__map {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

.offices__dots {
    display: block;
    width: 100%;
    height: auto;
}

.office {
    position: absolute;
    width: 0;
    height: 0;
}

.office.is-active {
    z-index: 2;
}

.office__pin {
    position: absolute;
    left: -20px;
    top: -20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary) 0 5px, rgba(7, 150, 105, 0.22) 6px 12px, rgba(7, 150, 105, 0.1) 13px 20px);
    cursor: pointer;
}

/* Soft pulse so the pins read as live locations */
.office__pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(7, 150, 105, 0.18);
    animation: office-pulse 2.6s ease-out infinite;
}

.office:nth-child(odd) .office__pin::after {
    animation-delay: 1.3s;
}

@keyframes office-pulse {
    from { transform: scale(0.4); opacity: 1; }
    to { transform: scale(1.5); opacity: 0; }
}

.office__pin:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.office__card {
    position: absolute;
    bottom: 26px;
    left: 0;
    width: max-content;
    max-width: 220px;
    padding: 14px 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
    transform: translate(-50%, 6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.office--start .office__card {
    transform: translate(-24px, 6px);
}

.office--end .office__card {
    transform: translate(calc(-100% + 24px), 6px);
}

.office.is-active .office__card {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.office--start.is-active .office__card {
    transform: translate(-24px, 0);
}

.office--end.is-active .office__card {
    transform: translate(calc(-100% + 24px), 0);
}

.office__flag {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
}

.office__city {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: var(--color-text);
}

.office__address {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .offices {
        padding: 8px 12px 64px;
    }

    .office__pin {
        left: -14px;
        top: -14px;
        width: 28px;
        height: 28px;
        background: radial-gradient(circle, var(--color-primary) 0 3.5px, rgba(7, 150, 105, 0.22) 4.5px 8px, rgba(7, 150, 105, 0.1) 9px 14px);
    }

    .office__card {
        bottom: 18px;
        max-width: 180px;
        padding: 10px 12px;
    }

    /* Small screens: the HQ card would cover the map, so cards only appear once a pin is tapped */
    .offices__map:not(.is-touched) .office__card {
        opacity: 0;
        visibility: hidden;
    }
}

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

    .office__card {
        transition: none;
    }
}
