:root {
    --color-navy: #304b79;
    --color-navy-dark: #223655;
    --color-navy-light: #4a6da3;
    /* Contrast (WCAG 2.2 AA, checked 2026-11-16): the brand blue is only 4.13:1 on white, so it's for large text
       (24px+, or 19px+ bold), icons and decoration only. Small text, links and button backgrounds use
       --color-blue-dark (5.5:1 on white, 5.1:1 on the light greys). */
    --color-blue: #2284bb;
    --color-blue-dark: #1c6f9c;
    /* Attain orange (the logo's tick). White text on it is 3.4:1 - large/bold text only (19px+ bold), or use the
       deeper --color-orange-dark (4.6:1, fine for any size). */
    --color-orange: #f15827;
    --color-orange-dark: #d73f0e;
    --color-text: #2b2b2b;
    --color-text-muted: #555555;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f9;
    --color-border: #e2e6ec;
    --disc-bg: linear-gradient(135deg, #4a4f57, #30343a); /* dark grey behind the white icon in every icon circle */
    --font-heading: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: "Segoe UI", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --radius-pill: 100px;
    --radius-sm: 6px;
    --container-width: 1200px;
    --space-lg: 96px;
    --space-md: 48px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.5em;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 40px;
    color: var(--color-navy);
}

h3 {
    font-size: 26px;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--color-blue-dark);
}

/* Hidden on screen, still read by screen readers (e.g. the "Contact details" heading on Contact Us) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    background: var(--color-blue-dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    text-decoration: none;
    transition: background-color 150ms ease;
}

.btn:hover {
    background: var(--color-navy);
    color: #ffffff;
}

/* Secondary button on a light background (the Home hero's "See features") */
.btn-ghost {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-navy);
    padding: 12px 30px;
}

.btn-ghost:hover {
    background: transparent;
    border-color: var(--color-navy);
    color: var(--color-navy);
}

/* White button on a blue background (the Who We Are demo band) */
.btn-light {
    background: #ffffff;
    color: var(--color-navy);
}

.btn-light:hover {
    background: #e8f1f9;
    color: var(--color-navy);
}

/* Cookie notice: a small box in the bottom-left corner (the back-to-top button is bottom right) */

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 400px;
    padding: 14px 18px;
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 250ms ease, transform 250ms ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.cookie-banner-actions .btn {
    padding: 7px 18px;
    font-size: 13px;
}

.cookie-banner-more {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    white-space: nowrap;
}

.cookie-banner-more:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* Page scroll progress */

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 300;
}

.page-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-blue) 0%, #6fd0ff 100%);
    box-shadow: 0 0 8px rgba(111, 208, 255, 0.6);
}

/* Back to top */

.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #30343a;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 250ms ease, transform 250ms ease, background-color 200ms ease;
    z-index: 150;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #4a4f57;
}

.back-to-top i {
    font-size: 22px;
    line-height: 1;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 250;
    background: var(--color-navy);
    padding: 20px 0;
    transition: padding 250ms ease, box-shadow 250ms ease;
}

.site-header.is-condensed {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: block;
    line-height: 0;
}

.site-logo img {
    height: 46px;
    width: auto;
    transition: height 250ms ease;
}

.site-header.is-condensed .site-logo img {
    height: 34px;
}

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: background-color 150ms ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 200ms ease, top 250ms ease;
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 9px;
}

.nav-toggle span:nth-child(3) {
    top: 18px;
}

.nav-toggle.is-open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-navy-dark);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 16px 24px;
        border-radius: 0;
    }
}

/* Hero (Home): the wordmark and the title across the full width (.hero-head), then text and buttons on the left
   and the product on the right - no photo banner (Simon liked monday.com's homepage). The module buttons
   (.hero-chip) swap the Attain screen in the window and the floating caption; the active one fills up and moves on
   by itself until someone clicks (heroSwitch in site.js). Generous spacing throughout - Simon and Helen found the
   first version cramped (2026-11-09). */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background: linear-gradient(180deg, #f2f7fc 0%, #ffffff 100%);
}

.hero-head {
    margin-bottom: 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: center;
}

/* the brand - big, it's the first thing on the site: the official "attain by integrity" logo (SVG) */
.hero-brand {
    display: block;
    height: 120px; /* the tick is ~70px */
    width: auto;
    max-width: 100%;
    margin-bottom: 32px;
}

.hero h1 {
    margin: 0;
    font-size: 66px;
    line-height: 1.02;
    color: var(--color-navy);
}

.hero-title-accent {
    color: var(--color-blue);
}

.hero-intro p {
    font-size: 19px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-switch {
    margin-top: 52px;
}

.hero-switch-label {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-chip {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.hero-chip i {
    font-size: 15px;
    line-height: 1;
    color: var(--color-blue);
}

.hero-chip:hover {
    border-color: var(--color-blue);
}

.hero-chip.is-active {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #ffffff;
}

.hero-chip.is-active i {
    color: #ffffff;
}

/* While it's playing by itself, the active button fills up from the left; when it's full the next screen comes in */
.hero-chip::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: #6fb8e6;
    transform: scaleX(0);
    transform-origin: left;
}

.hero-switch.is-auto .hero-chip.is-active::after {
    animation: hero-chip-timer 6s linear forwards;
}

.hero-switch.is-paused .hero-chip.is-active::after {
    animation-play-state: paused;
}

@keyframes hero-chip-timer {
    to {
        transform: scaleX(1);
    }
}

/* The product side: a soft blue rounded panel framing an app window that holds the screens (stacked, the active
   one shown), and a white caption card floating over the window's lower-left corner. The inner-page headers use
   the same panel and app window (.page-header-visual). The panel used to be tilted 3deg and bleed off to the
   right - Simon and Helen thought it looked like it had slipped out of place, so it's square now. */
.hero-visual {
    position: relative;
    padding: 32px;
}

.hero-visual::before,
.page-header-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 36px;
    background: linear-gradient(135deg, #e3eff9 0%, #c6dff2 100%);
}

.app-window {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 30px 60px -20px rgba(34, 54, 85, 0.35), 0 8px 20px rgba(34, 54, 85, 0.08);
}

.app-window-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #eef1f5;
}

.app-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd5de;
}

.hero-screens {
    display: grid;
}

.hero-screen {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 450ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-screen.is-active {
    opacity: 1;
    transform: none;
}

/* The caption nests in the panel's lower-left corner, the same distance from the left and the bottom, with its round
   end following the corner's curve: inset = panel corner radius (36px) - half the caption's height (46px / 2). */
.hero-floats {
    position: absolute;
    left: 13px;
    bottom: 13px;
    display: grid;
}

.hero-float {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 18px 8px 8px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(34, 54, 85, 0.18);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.hero-float.is-active {
    opacity: 1;
    transform: none;
    transition-delay: 250ms;
}

.hero-float i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 900px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero-head {
        margin-bottom: 28px;
    }

    .hero-brand {
        height: 92px;
        margin-bottom: 24px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-switch {
        margin-top: 40px;
    }

    .hero-visual {
        padding: 20px;
    }

    /* one swipeable row of buttons, so the screen they change sits right under them */
    .hero-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -24px;
        padding: 0 24px 4px;
        scrollbar-width: none;
    }

    .hero-chip {
        flex-shrink: 0;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-visual {
        padding: 14px;
    }

    /* 30px corner - 23px (half the caption) = 7px inset, so the caption still follows the curve */
    .hero-visual::before {
        border-radius: 30px;
    }

    .hero-floats {
        left: 7px;
        bottom: 7px;
    }

    .hero-intro p {
        font-size: 17px;
    }

    .hero-float {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-screen,
    .hero-float {
        transform: none;
        transition: opacity 200ms ease;
    }
}

/* Demo section (See Attain in Action + Request a Demo): one soft grey box joining the intro copy
   on the left to the form on the right. Markup lives in Views/Partials/_DemoSection.cshtml. */

.demo-section {
    padding: var(--space-lg) 0;
}

.demo-box {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
    padding: 56px;
    background: var(--color-bg-alt);
    border-radius: 28px;
}

.demo-copy h2 {
    margin: 0 0 20px;
    font-size: 52px;
    line-height: 1.02;
    color: var(--color-navy);
}

.demo-lead {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-blue-dark);
}

.demo-divider {
    margin: 36px 0 28px;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.demo-list-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-navy);
}

.demo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.demo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--color-text);
}

.demo-list i {
    color: var(--color-blue);
    font-size: 20px;
    line-height: 1;
}

.demo-request-form,
.contact-request-form {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.demo-request-form label,
.contact-request-form label {
    display: block;
    margin-bottom: 20px;
}

.demo-request-form label span,
.contact-request-form label span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.demo-request-form input,
.demo-request-form textarea,
.contact-request-form input,
.contact-request-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.demo-request-form input:focus,
.demo-request-form textarea:focus,
.contact-request-form input:focus,
.contact-request-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px #8fd0f5; /* a clear light-blue ring on the navy form panels (was a faint 35% glow) */
}

.demo-request-form textarea,
.contact-request-form textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-request-form .btn,
.contact-request-form .btn {
    display: block;
    width: 100%;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Honeypot field (see Views/Partials/_SpamProtection.cshtml) - hidden from
   sighted and screen-reader users alike, but still present for bots that
   blindly fill every field to find. */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-error-message {
    background: rgba(200, 60, 60, 0.15);
    border: 1px solid rgba(200, 60, 60, 0.4);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 14px;
}

.cf-turnstile {
    margin: 4px 0 20px;
}

.form-success-message {
    flex: 1;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-section .form-success-message {
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .demo-box {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 24px;
        border-radius: 22px;
    }

    .demo-copy h2 {
        font-size: 40px;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .demo-request-form,
    .contact-request-form {
        padding: 28px 24px;
    }
}

/* Contact details (Contact Us) */

.contact-details {
    padding: var(--space-md) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    padding: 28px 26px;
    box-shadow: 0 4px 16px rgba(48, 75, 121, 0.08);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(48, 75, 121, 0.16);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--disc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.contact-icon i {
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
}

.contact-card h3 {
    font-size: 19px;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

.contact-card p.contact-hours {
    color: var(--color-blue-dark);
    font-weight: 600;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact form (Contact Us) */

.contact-form-section {
    padding: 0 0 var(--space-lg);
    text-align: center;
}

.contact-form-header h2 {
    margin-bottom: 48px;
}

.contact-request-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

/* Features rail (Home): simple light-grey cards in a sideways-scrolling row - a large plain icon, the title and a
   short description (modelled on technologyone.com's "What's included" row). Arrows underneath scroll one card
   at a time (site.js); swiping works natively (overflow-x: auto, snapping to each card). Intro (once per page
   load): the cards start piled up on the first card's spot and slide out to their places one after another when
   the rail first comes into view (.is-piled below). Until someone uses it, the row then moves on one card every
   few seconds by itself (Simon asked for it to slide over). Markup: home.cshtml.
   --rail-pad lines the first card up with the page container. */

.feature-rail {
    --rail-pad: max(24px, calc((100% - 1152px) / 2));
    padding: var(--space-lg) 0 var(--space-md);
    background: var(--color-bg);
    overflow: hidden;
}

.feature-rail-head {
    margin-bottom: 40px;
}

.feature-rail-head h2 {
    margin: 0;
    color: var(--color-navy);
}

.feature-rail-track {
    --card-w: 300px;
    display: flex;
    gap: 20px;
    padding: 0 var(--rail-pad);
    overflow-x: auto;
    /* Horizontal only. overflow-x: auto quietly makes overflow-y auto too, and with display scaling (e.g. 150%)
       a sub-pixel of vertical overflow let a trackpad nudge the cards up and down. */
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--rail-pad);
    overscroll-behavior-x: contain; /* a swipe past the end doesn't trigger the browser's back gesture */
    scrollbar-width: none;
}

.feature-rail-track::-webkit-scrollbar {
    display: none;
}

.rail-card {
    position: relative;
    flex: 0 0 var(--card-w);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 88px 28px 30px;
    border-radius: 28px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    text-decoration: none;
    scroll-snap-align: start;
    z-index: calc(var(--i, 0) + 1); /* in the intro pile each card lies on the one before it */
    box-shadow: 0 0 0 rgba(48, 75, 121, 0);
    transition: background-color 200ms ease,
        translate 900ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 70ms),
        box-shadow 500ms ease calc(var(--i, 0) * 70ms + 400ms);
}

/* The intro pile: every card shifted back onto the first one's spot (instantly), 14px apart so the edges peek out,
   with a soft shadow so the grey cards read as a stack. site.js removes .is-piled once the rail is in view (or as
   soon as someone uses it) and the cards slide out, staggered by --i, the shadow fading as they land. Never added
   for prefers-reduced-motion. */
.feature-rail-track.is-piled .rail-card {
    translate: calc(var(--i, 0) * (var(--card-w) + 6px) * -1) 0;
    box-shadow: -10px 0 26px rgba(48, 75, 121, 0.16);
    transition-duration: 0s;
    transition-delay: 0s;
}

.rail-card-icon {
    margin-bottom: 28px;
    font-size: 44px;
    line-height: 1;
    color: var(--color-navy);
}

.rail-card h3 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.1;
    color: var(--color-navy);
    transition: color 200ms ease;
}

.rail-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

@media (hover: hover) {
    .rail-card:hover {
        background: #e8edf4;
    }

    .rail-card:hover h3 {
        color: var(--color-blue);
    }
}

/* orange "New!" pill in the top-right corner of a card (shown when the feature's "Is New" box is ticked) */
.rail-card-new {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #e5500f, #f78b3d);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    box-shadow: 0 6px 16px rgba(229, 80, 15, 0.45);
    animation: rail-new-pulse 2.4s ease-in-out infinite;
}

@keyframes rail-new-pulse {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(229, 80, 15, 0.45), 0 0 0 0 rgba(242, 103, 57, 0.5);
    }
    50% {
        box-shadow: 0 6px 16px rgba(229, 80, 15, 0.45), 0 0 0 9px rgba(242, 103, 57, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rail-card-new {
        animation: none;
    }
}

/* Round arrows under the row: navy when there's further to go, light grey at either end */
.rail-controls {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.rail-arrow {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--color-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.rail-arrow i {
    font-size: 20px;
    line-height: 1;
}

.rail-arrow:hover:not(:disabled) {
    background: var(--color-blue);
}

.rail-arrow:disabled {
    background: #c9cfd8;
    cursor: default;
}

@media (max-width: 640px) {
    .feature-rail-track {
        --card-w: 78vw;
    }

    .rail-card {
        min-height: 380px;
        padding: 64px 24px 28px;
    }

    .rail-card h3 {
        font-size: 24px;
    }
}

/* Testimonials (Home): three quote cards side by side, static. A council named in the attribution gets its logo. */

.testimonials {
    background: var(--color-bg-alt);
    padding: var(--space-lg) 0;
}

.testimonials h2,
.updates h2 {
    margin: 0 0 28px;
    color: var(--color-navy);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.quote-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 32px 30px 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 28px -14px rgba(48, 75, 121, 0.28);
}

.quote-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 24px;
}

.quote-mark i {
    line-height: 1;
}

.quote-card blockquote {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: none;
}

.quote-card blockquote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

.quote-card figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto; /* attribution sits at the bottom, so the three cards line up */
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-navy);
}

.quote-logo {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1);
}

/* Latest updates (Home): the three newest, static cards in a row */

.updates {
    padding: var(--space-lg) 0;
}

.update-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.update-card {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background: var(--color-bg-alt);
}

.update-date {
    flex: 0 0 64px;
    align-self: flex-start;
    padding: 10px 0;
    border-radius: 16px;
    background: var(--disc-bg);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
}

.update-date strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.update-body {
    min-width: 0;
}

.update-body h3 {
    margin: 0 0 6px;
    font-size: 21px;
    color: var(--color-navy);
}

.update-text {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.update-text p {
    margin: 0 0 6px;
}

@media (max-width: 900px) {
    .testimonial-grid,
    .update-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Proof numbers (Home, under the hero): a container-wide rounded blue box with the three figures and a faint
   ghosted Attain tick (img/attain-tick-ghost.svg) as a watermark. The Products highlights (Cloud first / Turnkey /
   100% Australian, _Highlights.cshtml) use the same box, right under the page header. */

.proof {
    padding: 40px 0 0;
}

.proof--products {
    padding: 0;
}

.proof-box {
    position: relative;
    overflow: hidden;
    padding: 34px 40px;
    border-radius: 28px;
    background: linear-gradient(120deg, var(--color-navy-dark) 0%, var(--color-navy) 55%, var(--color-blue-dark) 100%);
    color: #ffffff;
}

.proof-box::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -40px;
    width: 300px;
    height: 300px;
    translate: 0 -50%;
    background: url("/img/attain-tick-ghost.svg") center / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.proof-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.proof-list strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
}

.proof-list span {
    font-size: 15px;
    color: #ffffff;
}

@media (max-width: 700px) {
    .proof-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .proof-list strong {
        font-size: 40px;
    }
}

/* Page intro text (Products header, Who We Are, Contact Us) */

.page-intro-text {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 18px;
}

/* Overview (Products) */

.overview {
    padding: var(--space-md) 0;
    background: var(--color-bg-alt);
    text-align: center;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
    text-align: left;
}

.overview-item {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    padding: 28px 26px;
    box-shadow: 0 4px 16px rgba(48, 75, 121, 0.08);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
}

.overview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(48, 75, 121, 0.16);
}

.overview-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--disc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.overview-icon i {
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
}

.overview-item h3 {
    font-size: 19px;
    color: var(--color-navy);
    margin-bottom: 16px;
}

.overview-item p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.overview-item p:last-child {
    margin-bottom: 0;
}

.overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overview-list li {
    position: relative;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted);
    padding-left: 18px;
    margin-bottom: 12px;
}

.overview-list li:last-child {
    margin-bottom: 0;
}

.overview-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-blue);
}

.overview-list strong {
    color: var(--color-navy);
}

@media (max-width: 860px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Inner-page header (Who We Are, Products, Contact Us - Views/Partials/_PageHeader.cshtml): the Home hero's look,
   smaller. Breadcrumb, title and intro on the left; on the right a photo (the page's Banner Images - see
   .page-header--photo below) or, on Products, an Attain screen in the app window on the hero's soft-blue panel. */

.page-header {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #f2f7fc 0%, #ffffff 100%);
    overflow: hidden;
}

.page-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--color-text-muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #b4bcc8;
}

.breadcrumb a {
    color: var(--color-blue-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-header h1 {
    margin-bottom: 16px;
    font-size: 56px;
    line-height: 1.02;
    color: var(--color-navy);
}

.page-header .page-intro-text p {
    font-size: 19px;
    color: var(--color-text-muted);
}

.page-header-visual {
    position: relative;
    padding: 24px;
}

.page-header-photo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(34, 54, 85, 0.35), 0 8px 20px rgba(34, 54, 85, 0.08);
}

.page-header-screen {
    display: block;
    width: 100%;
    height: auto;
}

/* Photo headers (Who We Are, Contact Us): no frame - the photo starts at the right column, lined up with the
   content, and runs off the right-hand edge of the window, a fixed 460px high (Simon, 2026-11-16). It is 20px
   wider than the window edge so its rounded right corners are out of sight; it reaches the edge on screens up to
   2560px wide (Mitchell, 2026-11-16 - Simon's spec stopped at ~1920px); wider than that it stops at 1300px and
   those corners show. object-position comes from the photo's focal point (inline
   style, see _PageHeader.cshtml). .page-header's overflow: hidden stops the extra width scrolling the page. */
.page-header--photo .page-header-visual {
    padding: 0;
    margin-right: calc((100vw - min(100vw, var(--container-width))) / -2 - 24px - 20px);
    max-width: 1300px;
}

.page-header--photo .page-header-visual::before {
    content: none;
}

.page-header--photo .page-header-photo {
    height: 460px;
    aspect-ratio: auto;
}

@media (max-width: 900px) {
    .page-header {
        padding: 32px 0 40px;
    }

    .page-header-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .page-header h1 {
        font-size: 44px;
    }

    .page-header-visual {
        padding: 16px;
    }

    .page-header-visual::before {
        border-radius: 24px;
    }

    /* the photo goes under the text, the full width of the window, square, down to the next section */
    .page-header--photo {
        padding-bottom: 0;
    }

    .page-header--photo .page-header-visual {
        margin: 0 -24px;
        max-width: none;
    }

    .page-header--photo .page-header-photo {
        height: clamp(240px, 60vw, 420px);
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 560px) {
    .page-header h1 {
        font-size: 38px;
    }

    .page-header .page-intro-text p {
        font-size: 17px;
    }
}

/* Demo band (bottom of Who We Are): a blue box with a line of copy and a button to the demo form on Home */

.cta-band {
    padding: var(--space-md) 0 var(--space-lg);
}

.cta-band-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 48px;
    border-radius: 28px;
    background: linear-gradient(120deg, var(--color-navy-dark) 0%, var(--color-navy) 55%, var(--color-blue-dark) 100%);
    color: #ffffff;
}

.cta-band-box h2 {
    margin-bottom: 6px;
    color: #ffffff;
}

.cta-band-box p {
    margin: 0;
    color: #ffffff;
}

@media (max-width: 560px) {
    .cta-band-box {
        padding: 32px 24px;
    }
}

/* Legal page header (Privacy - plain banner, no photo) */

.legal-header {
    background: var(--color-navy);
    padding: 64px 0;
    text-align: center;
}

.legal-header h1 {
    color: #ffffff;
    margin: 0;
}

/* Legal page content (Privacy) */

.legal-content {
    padding: var(--space-md) 0;
}

.legal-content .container {
    max-width: 860px;
}

.legal-content h2 {
    margin-top: var(--space-md);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content ul {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.legal-content li {
    margin-bottom: 0.4em;
}

/* Vision statement (Who We Are) */

.vision {
    padding: var(--space-md) 0;
    text-align: center;
}

.vision-kicker {
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.vision-statement {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.25;
    color: var(--color-navy);
}

.vision-label {
    color: var(--color-blue);
}

/* Form anchors (#demo, #enquiry): keep the form clear of the sticky header after a redirect. */
#demo,
#enquiry {
    scroll-margin-top: 90px;
}

/* About grid (Who We Are - Our Commitment / Our Experience) */

.about-grid-section {
    padding: 0 0 var(--space-lg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.about-column {
    padding: 0 48px;
}

.about-column:first-child {
    padding-left: 0;
}

.about-column:last-child {
    padding-right: 0;
    border-left: 1px solid var(--color-border);
}

.about-column h2 {
    margin-bottom: 20px;
}

.about-column p {
    color: var(--color-text-muted);
    margin-bottom: 1em;
}

.about-column p:last-child {
    margin-bottom: 0;
}

@media (max-width: 780px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-column,
    .about-column:first-child,
    .about-column:last-child {
        padding: 0;
        border-left: none;
    }
}

/* Councils grid (Who We Are - "Organisations that trust Attain") */

.councils {
    padding: var(--space-lg) 0;
    background: var(--color-bg-alt);
    text-align: center;
}

.councils h2 {
    margin-bottom: 40px;
}

.councils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.council-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 12px;
    /* Skip layout/paint for tiles far outside the viewport - the main
       defence against the lag this grid caused on the old site at 56+ logos. */
    content-visibility: auto;
    contain-intrinsic-size: 80px 140px;
}

.council-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.72);
    transition: filter 200ms ease;
}

.council-logo:hover img {
    filter: grayscale(0) opacity(1);
}

/* Feature panels (Products - stacked rounded panels, each with a large Attain screenshot).
   Each panel sticks near the top while the next one slides up over it; --i (set inline in
   products.cshtml) offsets each panel's stick position so the previous panels' top edges peek out.
   The screenshot is wider than its column so it bleeds off the panel's outer edge (the panel
   clips it), and its inner, top and bottom edges are faded out with a single elliptical mask. Tweak --shot-scale to
   change how much bleeds. */

.feature-panels {
    padding: var(--space-md) 0 var(--space-lg);
}

.feature-panels .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-panel {
    --tint-a: #e9f2fb;
    --tint-b: #d4e5f5;
    --shot-scale: 1.25;
    /* The screen's top lines up with the top of the panel title (Simon, 2026-11-09): both columns start at the top
       and the screen drops by the icon disc (48px) + the gap above the h2. Change these together. */
    --title-gap: 14px;
    --title-top: calc(48px + var(--title-gap));
    position: sticky;
    /* The pile shows the latest 4 panels (steps 0-3, 16px apart, from --stack-top = 88px, just under the header).
       Without JS a panel's step is min(--i, 3); site.js's rolling pile sets --slot instead, so as a new panel
       arrives the older ones glide up a step and the oldest fades out. A panel only needs to be shorter than
       (window - 136px - 16px) to be readable in full; --stack-top is only lowered as a last resort. */
    top: calc(var(--stack-top, 88px) + var(--slot, min(var(--i), 3)) * 16px);
    scroll-margin-top: max(88px, calc(var(--stack-top, 88px) + min(var(--i), 3) * 16px));
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 32px;
    align-items: start;
    min-height: max(540px, var(--panel-h, 0px)); /* --panel-h: the tallest panel, set by site.js so the pile is even */
    padding: 48px 0 48px 56px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tint-a), var(--tint-b));
    /* Shadows (soft, no border - the original look). The panels pile up, so a full shadow on every panel would be
       drawn again and again on the same edges and add up into a dark halo. So only the panel at the back of the
       pile (the base) gets the full shadow; every other panel a soft upward shadow with a negative spread (little
       sideways reach) falling on the strip above it. See the .is-rolling rules below; phones/short windows (not
       stacking) give every panel the full shadow. */
    box-shadow: 0 -8px 24px -10px rgba(48, 75, 121, 0.18);
}

/* no JS: the first panel is the base of the pile */
.feature-panel:first-child {
    box-shadow: 0 -6px 28px rgba(48, 75, 121, 0.10), 0 2px 8px rgba(48, 75, 121, 0.06);
}

/* rolling pile (site.js): the base is whichever panel is at the back of the visible pile (.is-base), and a
   panel completely covered by the next one (.is-buried) drops its shadow - but never the base */
.is-rolling > .feature-panel {
    box-shadow: 0 -8px 24px -10px rgba(48, 75, 121, 0.18);
}

.is-rolling > .feature-panel.is-base {
    box-shadow: 0 -6px 28px rgba(48, 75, 121, 0.10), 0 2px 8px rgba(48, 75, 121, 0.06);
}

.is-rolling > .feature-panel.is-buried:not(.is-base) {
    box-shadow: none;
}

/* site.js measures each panel's natural (un-stuck) position with sticky switched off for a moment */
.is-measuring > .feature-panel {
    position: relative !important;
    top: auto !important;
}

/* not stacking: no pile, so every panel can have the full shadow */
@media (max-width: 900px), (max-height: 720px) {
    .feature-panel {
        box-shadow: 0 -6px 28px rgba(48, 75, 121, 0.10), 0 2px 8px rgba(48, 75, 121, 0.06);
    }
}

.feature-panel:nth-child(even) {
    --tint-a: #e8ecf6;
    --tint-b: #d6ddef;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    padding: 48px 56px 48px 0;
}

.feature-panel:nth-child(even) .feature-panel-copy {
    order: 2;
}

.feature-panel-icon {
    display: flex; /* a block, so the title's offset (--title-top) is exact */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 22px;
}

.feature-panel-icon i {
    line-height: 1;
}

.feature-panel-copy h2 {
    margin: var(--title-gap) 0 20px;
    font-size: 38px;
    line-height: 1.05;
    color: var(--color-navy);
}

/* the panel's bullet points (featurePoint nodes) - 26px apart (was 14px; Simon asked for 10-15px more, 2026-11-09) */
.story-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 26px;
}

.story-list li {
    padding-left: 14px;
    border-left: 2px solid var(--color-blue);
}

.story-list li strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.story-list li p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* The shadow goes on the figure (a mask on the image would clip its own shadow). */
.feature-panel-visual {
    position: relative;
    margin: var(--title-top) 0 0;
    filter: drop-shadow(0 22px 36px rgba(48, 75, 121, 0.28));
}

.feature-shot {
    display: block;
    width: calc(var(--shot-scale) * 100%);
    max-width: none;
    height: auto;
    border-radius: 16px 0 0 16px;
    -webkit-mask-image: radial-gradient(ellipse 105% 125% at 100% 38%, #000 58%, transparent 100%);
    mask-image: radial-gradient(ellipse 105% 125% at 100% 38%, #000 58%, transparent 100%);
}

.feature-panel:nth-child(even) .feature-shot {
    margin-left: calc((1 - var(--shot-scale)) * 100%);
    border-radius: 0 16px 16px 0;
    -webkit-mask-image: radial-gradient(ellipse 105% 125% at 0% 38%, #000 58%, transparent 100%);
    mask-image: radial-gradient(ellipse 105% 125% at 0% 38%, #000 58%, transparent 100%);
}

.feature-chip {
    position: absolute;
    left: 4%;
    bottom: 12%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
}

.feature-chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
}

.feature-panel:nth-child(even) .feature-chip {
    left: auto;
    right: 4%;
}

/* A sticky panel taller than the window can't be read to the bottom while it's stuck, so on short
   desktop windows let the panels scroll normally (they still stack visually, just not pinned). */
/* Shorter (laptop-height) windows: tighter panels - smaller screen image, padding and type - so even a five-point
   panel fits between its stick point and the bottom of the window and can be read in full while it's stuck. */
@media (min-width: 901px) and (max-height: 900px) {
    .feature-panel {
        --shot-scale: 1.05;
        --title-gap: 8px;
        min-height: var(--panel-h, 0px);
        padding: 28px 0 28px 48px;
    }

    .feature-panel:nth-child(even) {
        padding: 28px 48px 28px 0;
    }

    .feature-panel-copy h2 {
        margin-bottom: 14px;
        font-size: 32px;
    }

    .story-list {
        gap: 22px;
    }

    .story-list li strong {
        font-size: 16px;
    }

    .story-list li p {
        font-size: 13.5px;
        line-height: 1.45;
    }
}

@media (min-width: 901px) and (max-height: 720px) {
    .feature-panel {
        position: relative;
        top: auto;
    }
}

@media (max-width: 900px) {
    .feature-panels .container {
        gap: 24px;
    }

    .feature-panel,
    .feature-panel:nth-child(even) {
        position: relative;
        top: auto;
        scroll-margin-top: 80px;
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 0;
        padding: 32px 24px 0;
    }

    .feature-panel:nth-child(even) .feature-panel-copy {
        order: 0;
    }

    .feature-panel-visual {
        margin-top: 0;
    }

    .feature-panel-copy h2 {
        font-size: 32px;
    }

    /* Single column: the screenshot sits under the text, full width, flush with the panel's bottom. */
    .feature-shot,
    .feature-panel:nth-child(even) .feature-shot {
        width: 100%;
        margin-left: 0;
        border-radius: 12px 12px 0 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .feature-chip,
    .feature-panel:nth-child(even) .feature-chip {
        left: 12px;
        right: auto;
        bottom: auto;
        top: 12px;
    }
}

/* Footer */

/* Light footer: "Get in touch" + button on the left, the features as a link list on the right
   (filled column by column, so the Home grid's rows of three read as three columns), legal row below.
   Markup is in _Layout.cshtml; the link list comes from the same feature nodes as the Home grid. */

.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 32px;
    font-size: 14px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

.site-footer-contact h2 {
    margin: 0 0 24px;
    font-size: 52px;
    line-height: 1;
    color: #ffffff;
}

.site-footer .btn {
    color: #ffffff;
}

/* Contact us: Attain orange. 19px bold so the white text counts as large text (3:1 needed, 3.4:1 here); hover
   deepens to --color-orange-dark (4.6:1). */
.site-footer-contact .btn {
    font-size: 19px;
    background: var(--color-orange);
}

.site-footer-contact .btn:hover {
    background: var(--color-orange-dark);
}

/* phone and email, under the Contact us button */
.site-footer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.site-footer-details a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

.site-footer-details i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer-details a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 32px;
}

.site-footer-links li {
    break-inside: avoid;
    margin-bottom: 18px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer-links a i {
    flex-shrink: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer-links a:hover i {
    color: #ffffff;
}

.site-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.site-footer-legal a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* "(c) 2026 Integrity Management Solutions Pty Ltd | ABN ... | All rights reserved" on one line; on phones the three
   parts stack, without the bars (a wrapped part would otherwise start its line with one) */
.site-footer-copyright {
    display: flex;
}

.site-footer-copyright span {
    white-space: nowrap;
}

/* two non-breaking spaces either side of each bar (Mitchell, 2026-11-09) */
.site-footer-copyright span + span::before {
    content: "\00a0\00a0|\00a0\00a0";
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) { /* the one-line version is ~540px wide */
    .site-footer-copyright {
        flex-direction: column;
        row-gap: 4px;
    }

    .site-footer-copyright span + span::before {
        content: none;
    }
}

@media (max-width: 900px) {
    .site-footer {
        padding-top: 48px;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .site-footer-contact h2 {
        font-size: 40px;
    }

    .site-footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 560px) {
    .site-footer-links ul {
        columns: 1;
    }
}

/* Client logos (Home, under the features rail): council logos scrolling right to left. The track holds the list
   twice and moves by -50% (a CSS animation), so it loops seamlessly (each item carries its own right margin, so the
   two halves are exactly equal). Pauses on hover. The arrows underneath (Simon couldn't tell it moved) slide it on a
   few logos - logoMarquee in site.js. For visitors who prefer reduced motion it's a still row the arrows scroll. */

.client-logos {
    padding: 48px 0 56px; /* now sits above the grey testimonials band, so a little more room underneath */
}

.client-logos-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.client-logos h2 {
    margin: 0;
    font-size: 26px;
    color: var(--color-navy);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-blue-dark);
    text-decoration: none;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--color-navy);
    text-decoration: underline;
}

/* sits inside .container, so it's the same width as the heading and the sections around it; the edges fade out */
.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    animation: logo-marquee var(--marquee-duration, 90s) linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 76px;
    margin-right: 48px;
}

/* darker and bolder than the old fading row: full-strength greyscale, a little extra contrast */
.logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(1.25) brightness(0.8);
}

@keyframes logo-marquee {
    to {
        transform: translateX(-50%);
    }
}

.logo-controls {
    margin-top: 24px;
}

/* Reduced motion (e.g. Windows "Animation effects" off): a still row that the arrows (or a swipe) scroll.
   No visible scrollbar - same as the features rail; the arrows are the control (Simon saw one, 2026-11-16). */
@media (prefers-reduced-motion: reduce) {
    .logo-marquee {
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .logo-marquee::-webkit-scrollbar {
        display: none;
    }

    .logo-marquee-track {
        animation: none;
    }

    .logo-marquee-item[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 600px) {
    .logo-marquee-item {
        width: 130px;
        height: 60px;
        margin-right: 32px;
    }
}

/* The big Home section titles share one size with the footer's "Get in touch" (and the demo box heading) */
.feature-rail-head h2 {
    font-size: 52px;
    line-height: 1;
}

@media (max-width: 900px) {
    .feature-rail-head h2 {
        font-size: 40px;
    }
}

/* "Coming soon" tags (feature's "Coming soon" tick-box): Home rail card, Products panel, footer link */
.rail-card-soon {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--disc-bg);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* "Soon" pill after a Products panel title (feature marked Coming soon) - same grey pill as the Home card's */
.soon-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    vertical-align: 0.3em;
}

.site-footer-soon {
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* Security band on Home (above the demo form - _SecurityBand.cshtml), linking to the Security & Privacy page (which
   uses the plain .legal-* look, like Privacy). The wording comes from the revised Attain SLA; see the comment at the
   top of _SecurityBand.cshtml. */

/* Products: the band follows the grey "Why Attain?" section, so it needs its own space above (on Home the white
   section before it already ends with --space-lg of padding) */
.overview + .security-band {
    padding-top: var(--space-lg);
}

.security-band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.security-band-head h2 {
    margin: 0;
    color: var(--color-navy);
}

.security-band-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.security-band-grid li {
    padding: 26px 24px;
    border-radius: 22px;
    background: var(--color-bg-alt);
}

.security-band-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--disc-bg);
    color: #ffffff;
    font-size: 20px;
}

.security-band-grid h3 {
    margin: 0 0 6px;
    font-size: 21px;
    color: var(--color-navy);
}

.security-band-grid p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .security-band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .security-band-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
