/* === Typography ===
   Inter (SIL Open Font License), self-hosted so no visitor data goes to a font CDN. One variable file per subset;
   latin-ext covers Polish. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Brand tokens ===
   Bound to the audited brand values (see docs/plans/…_Implementation_Plan.md §2).
   Bootstrap's own --bs-orange (#fd7e14) is not the brand orange; use --cp-orange.
   Visual direction: deep navy for navigation, page openings, bands and footer; white for reading; orange is the
   single accent. Yellow is no longer used for text or backgrounds. */
:root {
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);

    --cp-orange: #ff6600;             /* logo orange: fills, graphics, text on navy (4.9:1 on #24285b) */
    --cp-orange-hover: #ff7a1f;
    --cp-orange-light: #ff8a3d;       /* links and small text on navy */
    --cp-orange-text: #d94f00;        /* orange text and icons on white (4.2:1, headings and graphics only) */
    --cp-navy: var(--bs-primary);     /* #24285b */
    --cp-navy-ink: #121643;           /* = --bs-body-color */
    --cp-navy-deep: #0c0f30;          /* navigation, footer */
    --cp-navy-tint: #eef0f8;          /* light navy wash for highlights on white */
    --cp-yellow: var(--bs-secondary); /* #ffd200, reserved for the logo and rare highlights */
    --cp-gray-logo: #545454;
    --cp-surface: var(--bs-body-bg);
    --cp-surface-muted: #f4f5f9;
    --cp-border: #e3e6f0;
    --cp-text-muted: #4a4f7a;         /* body copy on light surfaces (7.4:1 on white) */
    --cp-nav-h: 88px;                 /* floating navbar height (phones); page openings start below it */

    /* Shape language: soft corners for cards, larger ones for page panels, pills for controls. */
    --cp-radius-sm: 0.875rem;         /* icon tiles, inputs, screenshots */
    --cp-radius: 1.5rem;              /* cards */
    --cp-radius-lg: 2.25rem;          /* page panels: openings, navy bands, call to action, footer */
    --cp-inset: 0.75rem;              /* gap between a page panel and the window edge */

    /* Glass surfaces. Light glass sits on the tinted page; dark glass on navy panels. */
    --cp-glass: rgba(255, 255, 255, 0.64);
    --cp-glass-strong: rgba(255, 255, 255, 0.82);
    --cp-glass-border: rgba(255, 255, 255, 0.9);
    --cp-glass-blur: blur(18px) saturate(140%);
    --cp-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 40px -24px rgba(18, 22, 67, 0.24);
    --cp-glass-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 48px -20px rgba(18, 22, 67, 0.3);
    --cp-glass-dark: rgba(255, 255, 255, 0.07);
    --cp-glass-dark-border: rgba(255, 255, 255, 0.14);

    /* Bootstrap components (inputs, modals, accordions, .rounded) follow the same, softer corners. */
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: 0.5rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-xl: 1.5rem;
    --bs-border-radius-xxl: 2.25rem;
}

@media (max-width: 575.98px) {
    :root {
        --cp-radius: 1.25rem;
        --cp-radius-lg: 1.5rem;
        --cp-inset: 0.375rem;
    }
}

body {
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--cp-surface-muted);
}

/* Soft brand-coloured light behind the whole page. It stays put while the page scrolls, so the glass cards
   blur a slowly shifting background. Drawn under all content (z-index -1) and never intercepts clicks. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 42rem at 100% 12%, rgba(255, 102, 0, 0.11), transparent 70%),
        radial-gradient(46rem 46rem at 0% 62%, rgba(36, 40, 91, 0.11), transparent 70%),
        radial-gradient(40rem 40rem at 88% 100%, rgba(255, 210, 0, 0.1), transparent 70%);
}

h1, h2, h3, .h1, .h2, .h3 {
    letter-spacing: -0.02em;
}

.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.lead,
.fs-5 {
    line-height: 1.6;
}

img.logo {
  height: auto;
}

/* The official logo (with the "task-based software development" tagline), sized to sit inside the floating navigation
   pill. The navigation and footer are dark, so they use logo_codedprojects_2025_v2_light.png: the same logo with the
   grey lettering in white. */
@media (min-width: 576px) {
  :root {
    --cp-nav-h: 100px;
  }

  img.logo {
    width: 170pt;
  }
}

@media (max-width: 575px) {
  img.logo {
    width: 132pt;
  }
}

svg.icon-tabler-ext {
  width: 30pt;
  height: 30pt;
  /*border: 1px var(--bs-black) solid;*/
  padding: 3pt;
  border-radius: 3pt;
}

.task-flow-container {
  border: 1px solid var(--cp-glass-border);
  border-radius: var(--cp-radius);
  background-color: var(--cp-glass);
  -webkit-backdrop-filter: var(--cp-glass-blur);
  backdrop-filter: var(--cp-glass-blur);
  box-shadow: var(--cp-glass-shadow);
}

.task-flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--cp-navy);
  color: #fff;
  border-radius: 999px;
  margin-right: 0.6rem;
  font-size: 1.1rem;
}

.success-modal {
  background-color: var(--bs-success);
  color: var(--bs-light);
  /*font-weight: bold !important;*/
}

.modal-icon {
  font-size: 50pt;
  color: var(--bs-success);
}

.nav-item {
  font-size: 0.95rem;
}

/* notification styles */

.notification-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    border-radius: var(--cp-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    max-width: 320px;
    font-weight: bold;
    font-size: 1rem;
}
.error-notification {
    background-color: var(--bs-danger);
    color: var(--bs-white);
}
.info-notification {
    background-color: var(--bs-info);
    color: var(--bs-white);
}
.warn-notification {
    background-color: var(--bs-warning);
    color: var(--bs-black);
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}


/* cookie banner */

/* A floating dark glass panel above the bottom edge, in the same shape language as the navigation. */
.cookie-banner {
    position: fixed;
    bottom: var(--cp-inset);
    left: var(--cp-inset);
    right: var(--cp-inset);
    background-color: rgba(12, 15, 48, 0.9);
    border: 1px solid var(--cp-glass-dark-border);
    border-radius: var(--cp-radius);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px -16px rgba(5, 7, 31, 0.55);
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    text-align: center;
    z-index: 9999;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .cookie-banner a {
        color: var(--cp-orange-light);
        margin-left: 5px;
    }

.cookie-buttons {
    margin-top: 0.75rem;
}

    .cookie-buttons button {
        margin: 0 5px;
        background-color: var(--cp-orange);
        color: var(--cp-navy-ink);
        border: 1px solid var(--cp-orange);
        padding: 0.45rem 1.1rem;
        cursor: pointer;
        font-weight: 700;
        border-radius: 999px;
    }

    .cookie-buttons .btn-necessary {
        background-color: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.45);
    }

/* cookie banner styles end */

/* === Products index cards === */

/* The intro floats the logo so the product name and description wrap around it.
   It is its own block because floats have no effect on flex items, and the
   card body is a flex column. */
.product-card__intro::after {
    content: "";
    display: block;
    clear: both;
}

.product-card__logo {
    float: left;
    margin: 0.25rem 1.25rem 0.75rem 0;
    max-height: 4.5rem;
    max-width: 9rem;
}

.product-card__actions .btn {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    /* Too narrow to wrap text beside a logo — stack instead. */
    .product-card__logo {
        float: none;
        display: block;
        margin: 0 auto 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .product-card__actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* === Highlighted words in headings === */

/* Highlighted words are set in orange: the deeper shade on white, the brand orange on navy.
   bootstrap.min.css also draws .underline with an absolutely positioned ::after, which is switched off. */
.underline {
    color: var(--cp-orange-text);
}

.underline::after {
    content: none;
}

.page-hero .underline,
.page-section--navy .underline,
.cta-band .underline {
    color: var(--cp-orange);
}

.text-accent {
    color: var(--cp-orange-text) !important;
}

/* Key figures, e.g. years of experience on the home page. */
.stat-figure {
    display: block;
    color: var(--cp-orange-text);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* === Page content offset === */

/* The navbar is fixed-top and dark. Every page opens with a dark .page-hero that reserves the navbar height itself,
   so the main element adds no offset of its own. */
.site-main {
    padding-top: 0;
}

/* === Buttons === */

/* Every button is a pill. */
.btn,
.btn-lg,
.btn-sm {
    --bs-btn-border-radius: 999px;
}

.btn {
    --bs-btn-padding-x: 1.25rem;
    font-weight: 600;
}

.btn-lg {
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-font-size: 1.125rem;
}

/* Orange call to action. White text on #ff6600 fails WCAG AA (2.9:1); navy text passes (4.7:1). */
.btn-accent {
    --bs-btn-color: var(--cp-navy-ink);
    --bs-btn-bg: var(--cp-orange);
    --bs-btn-border-color: var(--cp-orange);
    --bs-btn-hover-color: var(--cp-navy-ink);
    --bs-btn-hover-bg: var(--cp-orange-hover);
    --bs-btn-hover-border-color: var(--cp-orange-hover);
    --bs-btn-focus-shadow-rgb: 255, 102, 0;
    --bs-btn-active-color: var(--cp-navy-ink);
    --bs-btn-active-bg: var(--cp-orange-hover);
    --bs-btn-active-border-color: var(--cp-navy);
    --bs-btn-disabled-color: var(--cp-navy-ink);
    --bs-btn-disabled-bg: var(--cp-orange);
    --bs-btn-disabled-border-color: var(--cp-orange);
    font-weight: 700;
    box-shadow: 0 12px 28px -12px rgba(255, 102, 0, 0.7);
}

/* Secondary action on navy: a glass pill. */
.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-border-color: rgba(255, 255, 255, 0.24);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.16);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.4);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* === Backgrounds === */

/* Brand colours only, no image downloads.
   --cp-dark-surface is the navy of page panels, lit by soft orange and indigo glows.
   --cp-grid-dark is a faint line grid drawn over it, masked so it frames the content rather than running behind text. */
:root {
    --cp-dark-surface:
        radial-gradient(38rem 38rem at 90% 6%, rgba(255, 102, 0, 0.3), transparent 70%),
        radial-gradient(42rem 42rem at 4% 100%, rgba(92, 100, 214, 0.36), transparent 70%),
        radial-gradient(18rem 18rem at 52% 48%, rgba(255, 210, 0, 0.07), transparent 70%),
        linear-gradient(160deg, #20245a 0%, #121643 45%, #0c0f30 100%);
    --cp-grid-dark:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

/* === Navigation === */

/* A floating dark glass pill. The bar itself is transparent; its container carries the surface.
   Bootstrap Studio styles #mainNav with the light body background; these rules take the same selectors. */
#mainNav,
#mainNav.navbar-shrink {
    background: transparent;
    border: 0;
    padding-top: calc(var(--cp-inset) + 0.75rem) !important;
    padding-bottom: 0.75rem !important;
}

#mainNav > .container {
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    background-color: rgba(12, 15, 48, 0.62);
    border: 1px solid var(--cp-glass-dark-border);
    border-radius: 1.75rem;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 30px -12px rgba(3, 5, 25, 0.55);
    transition: background-color 0.25s ease;
}

/* Over light content, once the page has scrolled, the pill turns more opaque so links stay readable. */
#mainNav.navbar-shrink > .container {
    background-color: rgba(12, 15, 48, 0.86);
}

@media (max-width: 575.98px) {
    #mainNav > .container {
        width: calc(100% - 1.5rem);
        margin-inline: auto;
    }
}

@media (min-width: 992px) {
    #mainNav > .container {
        border-radius: 999px;
    }
}

#mainNav .navbar-toggler {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.18);
}

#mainNav .navbar-nav > li.nav-item > a.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus-visible,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    color: #fff;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    #mainNav .navbar-nav > li.nav-item > a.nav-link {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 991.98px) {
    #mainNav .navbar-nav > li.nav-item > a.nav-link {
        padding-inline: 1rem;
    }
}

.navbar .nav-cta {
    margin-left: 0.75rem;
}

@media (max-width: 991.98px) {
    .navbar .nav-cta {
        margin: 0.5rem 0 0.75rem;
        display: inline-block;
    }
}

/* === Page openings === */

/* An inset, rounded navy panel. The floating navigation sits over its top edge. */
.page-hero {
    position: relative;
    margin: var(--cp-inset) var(--cp-inset) 0;
    padding: calc(var(--cp-nav-h) + 3rem) 0 4.5rem;
    border-radius: var(--cp-radius-lg);
    background: var(--cp-dark-surface);
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cp-grid-dark);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, transparent 20%, #000 85%);
    mask-image: radial-gradient(ellipse at 30% 50%, transparent 20%, #000 85%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
    color: #fff;
}

.page-hero h1 {
    letter-spacing: -0.035em;
}

.page-hero .text-muted {
    color: rgba(255, 255, 255, 0.76) !important;
}

.page-hero a:not(.btn) {
    color: var(--cp-orange-light);
}

.page-hero .context-note {
    color: rgba(255, 255, 255, 0.76);
}

/* The illustration sits in a glass frame. Width and height stay automatic so the frame follows the picture's own
   proportions when the height cap applies. */
.page-hero__image {
    width: auto;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    padding: 0.625rem;
    background-color: var(--cp-glass-dark);
    border: 1px solid var(--cp-glass-dark-border);
    border-radius: var(--cp-radius-lg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 40px 80px -30px rgba(3, 5, 25, 0.7);
}

/* === Sections === */

/* Sections sit straight on the tinted page, so glass cards pick up the background light. */
.page-section {
    padding: 4.5rem 0;
}

/* Keeps in-page anchors (e.g. /services#engineering) clear of the fixed navbar. */
.anchor-target {
    scroll-margin-top: calc(var(--cp-nav-h) + 2rem);
}

/* A faint white wash, fading in and out, gives rhythm between sections without hard edges. */
.page-section--muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 18%, rgba(255, 255, 255, 0.5) 82%, rgba(255, 255, 255, 0) 100%);
}

/* Navy band: an inset, rounded panel like the page opening. Text colours are overridden for contrast on navy. */
.page-section--navy {
    position: relative;
    margin: 2rem var(--cp-inset);
    padding: 5.5rem 0;
    border-radius: var(--cp-radius-lg);
    background: var(--cp-dark-surface);
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.page-section--navy::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cp-grid-dark);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
    mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
    pointer-events: none;
}

.page-section--navy > .container {
    position: relative;
}

.page-section--navy h2,
.page-section--navy h3 {
    color: #fff;
}

.page-section--navy .text-muted {
    color: rgba(255, 255, 255, 0.74) !important;
}

.page-section--navy a:not(.btn) {
    color: var(--cp-orange-light);
}

/* Closing call-to-action panel, with the orange light behind the text. */
.cta-band {
    position: relative;
    background:
        radial-gradient(40rem 22rem at 70% 50%, rgba(255, 102, 0, 0.3), transparent 70%),
        linear-gradient(135deg, #24285b 0%, #121643 60%);
    box-shadow: 0 30px 60px -30px rgba(18, 22, 67, 0.45);
    overflow: hidden;
}

/* Overrides Bootstrap's .rounded, which carries !important. */
.cta-band.rounded {
    border-radius: var(--cp-radius-lg) !important;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cp-grid-dark);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
    pointer-events: none;
}

.cta-band > * {
    position: relative;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.8);
}

/* === Cards === */

/* Every Bootstrap card is a light glass panel with soft corners. */
.card {
    --bs-card-border-radius: var(--cp-radius);
    --bs-card-inner-border-radius: calc(var(--cp-radius) - 1px);
    --bs-card-bg: var(--cp-glass);
    --bs-card-border-color: var(--cp-glass-border);
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
    box-shadow: var(--cp-glass-shadow);
}

/* Forms read better on a more opaque surface. */
form.card {
    --bs-card-bg: var(--cp-glass-strong);
}

.icon-card,
.product-spotlight {
    background-color: var(--cp-glass);
    border: 1px solid var(--cp-glass-border) !important;
    box-shadow: var(--cp-glass-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.icon-card:hover,
.product-spotlight:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.35) !important;
    box-shadow: var(--cp-glass-shadow-hover);
}

/* Highlighted boxes on the product pages (Bootstrap's .bg-light and .rounded carry !important). */
.bg-light.rounded {
    background-color: var(--cp-glass) !important;
    border: 1px solid var(--cp-glass-border) !important;
    border-radius: var(--cp-radius) !important;
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
    box-shadow: var(--cp-glass-shadow);
}

.section-header {
    max-width: 52rem;
    margin-bottom: 2.5rem;
}

/* A small pill with an orange dot. On white the text stays navy for contrast; the dot is a graphic accent. */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem 0.35rem 0.7rem;
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 999px;
    background-color: rgba(255, 102, 0, 0.08);
    color: var(--cp-navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--cp-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.page-hero .section-eyebrow,
.page-section--navy .section-eyebrow {
    border-color: var(--cp-glass-dark-border);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* A one-line note that places a page in context, e.g. the delivery model page. */
.context-note {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 3px solid var(--cp-orange);
    color: var(--bs-secondary-color);
    text-align: left;
}

/* Icon tiles (Bootstrap Studio's .bs-icon-secondary was yellow): navy tile with an orange glyph, as in the illustrations. */
.bs-icon.bs-icon-secondary {
    background-color: var(--cp-navy-ink);
    color: var(--cp-orange-light);
}

.bs-icon.bs-icon-rounded {
    border-radius: var(--cp-radius-sm);
}

.icon-card__link {
    color: var(--cp-navy);
}

/* Steps are glass cards with an orange numbered disc. */
.step-list__item {
    padding: 1.75rem;
    border: 1px solid var(--cp-glass-border);
    border-radius: var(--cp-radius);
    background-color: var(--cp-glass);
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
    box-shadow: var(--cp-glass-shadow);
}

.step-list__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--cp-orange);
    color: var(--cp-navy-ink);
    font-weight: 800;
    box-shadow: 0 0 0 6px rgba(255, 102, 0, 0.16);
}

.page-section--navy .step-list__item {
    border-color: var(--cp-glass-dark-border);
    background-color: var(--cp-glass-dark);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.feature-row + .feature-row,
.anchor-target + .anchor-target {
    /* The second selector covers rows wrapped in an anchor (Services page), which are not siblings of each other. */
    margin-top: 5rem;
}

/* "Why it matters" note under a step's description (AI Transformation page). */
.feature-why {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--cp-glass-border);
    border-left: 3px solid var(--cp-orange);
    border-radius: 0.25rem var(--cp-radius-sm) var(--cp-radius-sm) 0.25rem;
    background-color: var(--cp-glass);
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
}

.feature-why__label {
    margin-bottom: 0.4rem;
    color: var(--cp-navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-row__image {
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(18, 22, 67, 0.22));
}

/* Illustrations placed directly in older page layouts (workspace, careers, delivery model). */
img[src*="/illustrations/"].rounded {
    border-radius: 0 !important;
    filter: drop-shadow(0 18px 28px rgba(18, 22, 67, 0.2));
}

.illustrative-label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background-color: var(--cp-navy-tint);
    color: var(--cp-navy-ink);
    font-size: 0.875rem;
}

.product-spotlight__logo {
    height: 3rem;
    width: auto;
}

/* The FAQ is one glass panel with soft corners. */
.faq-accordion {
    --bs-accordion-bg: var(--cp-glass-strong);
    --bs-accordion-border-color: rgba(18, 22, 67, 0.08);
    --bs-accordion-border-radius: var(--cp-radius);
    --bs-accordion-inner-border-radius: calc(var(--cp-radius) - 1px);
    border-radius: var(--cp-radius);
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
    box-shadow: var(--cp-glass-shadow);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--cp-navy);
    background-color: var(--cp-navy-tint);
    box-shadow: inset 3px 0 0 var(--cp-orange);
}

.check-list {
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.4rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--cp-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.18);
}

/* === Places & People (contact page) === */

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    background-color: var(--cp-glass);
    border: 1px solid var(--cp-glass-border);
    border-radius: var(--cp-radius);
    -webkit-backdrop-filter: var(--cp-glass-blur);
    backdrop-filter: var(--cp-glass-blur);
    box-shadow: var(--cp-glass-shadow);
}

.contact-card__media {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 0.9rem;
    object-fit: cover;
}

.contact-card__media--person {
    border-radius: 50%;
}

.contact-card__body {
    min-width: 0;
}

.contact-card__links li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.contact-card__links .icon {
    flex: 0 0 auto;
    color: var(--cp-orange-text);
    font-size: 1.15rem;
}

.contact-card__links a {
    color: var(--cp-navy);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card__links a:hover,
.contact-card__links a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .contact-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* === Forms === */

/* Soft corners and a white fill that stays readable on glass. */
.form-control,
.form-select {
    border-radius: var(--cp-radius-sm);
    background-color: #fff;
}

/* === Insights articles === */

.article-body {
    font-size: 1.125rem;
    line-height: 1.75;
}

.article-body h2,
.article-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Image styles an article can pick with {.left}, {.right}, ... (MarkdownArticleStore.ImageStyles). */
.article-body .article-img--left {
    float: left;
    max-width: 50%;
    margin: 0.35rem 1.75rem 1rem 0;
}

.article-body .article-img--right {
    float: right;
    max-width: 50%;
    margin: 0.35rem 0 1rem 1.75rem;
}

.article-body .article-img--center {
    display: block;
    margin: 2rem auto;
}

.article-body .article-img--wide {
    display: block;
    width: 100%;
    margin: 2rem 0;
}

.article-body .article-img--rounded {
    border-radius: var(--cp-radius);
}

.article-body .article-img--shadow {
    box-shadow: 0 16px 36px rgba(18, 22, 67, 0.16);
}

.article-body .article-img--border {
    border: 1px solid var(--cp-border);
}

/* A new section starts below a floated image instead of wrapping around it. */
.article-body h2,
.article-body h3,
.article-body hr {
    clear: both;
}

/* Too narrow for text beside an image: floated images stack, full width. */
@media (max-width: 575.98px) {
    .article-body .article-img--left,
    .article-body .article-img--right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 1.5rem auto;
    }
}

.article-body blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--cp-orange);
    color: var(--bs-secondary-color);
}

.article-body pre {
    padding: 1rem;
    border-radius: var(--cp-radius-sm);
    background-color: var(--cp-surface-muted);
}

.article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.article-body th,
.article-body td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

/* === Footer === */

/* An inset, rounded navy panel that closes the page. */
.site-footer {
    margin: var(--cp-inset);
    padding: 4rem 0 1.5rem;
    border-radius: var(--cp-radius-lg);
    background:
        radial-gradient(36rem 20rem at 100% 0%, rgba(255, 102, 0, 0.12), transparent 70%),
        linear-gradient(180deg, var(--cp-navy-ink) 0%, var(--cp-navy-deep) 100%);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.62) !important;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--cp-orange-light);
}

.site-footer .lang-select-btn {
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .lang-select-btn:hover,
.site-footer .lang-select-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-footer .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.footer-nav a {
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    text-decoration: underline;
}

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Motion === */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Product pages === */

.product-hero__logo {
    max-width: 180px;
    height: auto;
}

/* Portal screenshots: a framed panel, since the captures have a white background like the page. */
.feature-row__image[src*="/screens/"],
.product-screen__image {
    border: 1px solid var(--cp-glass-border);
    border-radius: var(--cp-radius-sm);
    background-color: #fff;
    filter: none;
    box-shadow: 0 24px 48px -24px rgba(18, 22, 67, 0.35);
}

.product-screen figcaption {
    font-size: 0.95rem;
}

/* === Zoomable screenshots (ZoomableScreen + assets/js/screen-lightbox.js) === */

.screen-zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.screen-zoom picture,
.screen-zoom img {
    display: block;
    width: 100%;
}

.screen-zoom__hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-color: var(--cp-navy);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.screen-zoom:hover .screen-zoom__hint,
.screen-zoom:focus-visible .screen-zoom__hint {
    opacity: 1;
    transform: scale(1.08);
}

.screen-zoom:focus-visible {
    outline: 3px solid var(--cp-orange);
    outline-offset: 4px;
    border-radius: var(--cp-radius-sm);
}

.screen-lightbox {
    width: min(96vw, 1600px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--cp-radius);
    background: transparent;
    overflow: visible;
}

.screen-lightbox::backdrop {
    background-color: rgba(10, 12, 40, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.screen-lightbox__figure {
    margin: 0;
}

.screen-lightbox__image {
    display: block;
    width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--cp-radius);
    background-color: #fff;
}

.screen-lightbox__caption {
    margin-top: 0.75rem;
    color: #fff;
    text-align: center;
}

.screen-lightbox__close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background-color: #fff;
    color: var(--cp-navy);
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Screenshots keep their own aspect ratio inside the frame rather than the illustrations' height cap. */
.screen-zoom .feature-row__image {
    max-height: none;
}
