/*
Theme Name: CoreLedger Theme
Theme URI: https://coreledger.org
Author: CoreLedger F.Z.E.
Author URI: https://coreledger.org
Description: Custom theme for CoreLedger — financial clarity for businesses in UAE
Version: 1.0.0
License: Proprietary
Text Domain: coreledger
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
    --color-bg:           #EEF2F7;
    --color-text-primary: #1E293B;
    --color-text-muted:   #67768E;
    --color-card-heading: #1A1A2E;
    --color-white:        #FFFFFF;
    --color-dark:         #1E293B;

    --color-button-bg:    #1E293B;
    --color-button-text:  #FFFFFF;
    --button-radius:      5px;
    --button-padding:     14px 28px;

    --font-heading:       'Roboto', sans-serif;
    --font-card-title:    'Plus Jakarta Sans', sans-serif;
    --font-body-fallback: 'Inter', sans-serif;

    --container-max:      1200px;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* When Lenis is driving scroll (desktop only), let it own all easing —
 * native CSS smooth + JS lerp would fight each other. */
html.lenis-active {
    scroll-behavior: auto;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

body {
    font-family: var(--font-body-fallback);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.18;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-card-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-card-heading);
}

h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

p {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text-primary);
}

a {
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

ul,
ol {
    list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Full-bleed: dark sections always span full viewport width */
.pain-relief,
.pricing-section,
.about-section,
.contact-section {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary,
.btn-secondary {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    padding: var(--button-padding);
    border-radius: var(--button-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    border-color: var(--color-button-bg);
}

.btn-primary:hover {
    opacity: 0.88;
    color: var(--color-button-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.btn-secondary:hover {
    opacity: 0.7;
    color: var(--color-text-primary);
}

.btn-sm {
    font-size: 13px;
    padding: 10px 20px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    background-color: var(--color-bg);
    padding-top: 28px;
    padding-bottom: 14px;
}

/* ── Transparent header on home page (static, scrolls away) ── */
body.home .site-header {
    position: relative;
    z-index: 10;
    background: transparent;
    padding-bottom: 0;
}

body.home .site-header .site-header__logo img {
    filter: brightness(0) invert(1);
}

body.home .site-header .site-nav__link,
body.home .site-header .lang-switch,
body.home .site-header .site-nav__link:active,
body.home .site-header .site-nav__link:focus,
body.home .site-header .site-nav__link:visited,
body.home .site-header .lang-switch:active,
body.home .site-header .lang-switch:focus,
body.home .site-header .lang-switch:visited {
    color: rgba(255, 255, 255, 0.80);
}
@media (hover: hover) {
    body.home .site-header .site-nav__link:hover,
    body.home .site-header .lang-switch:hover {
        color: #ffffff;
    }
}

body.home .site-header .site-header__toggle {
    color: #ffffff;
}

body.home .site-header .site-nav.is-open {
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.home .site-header .site-nav.is-open .site-nav__link,
body.home .site-header .site-nav.is-open .lang-switch {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Hero: pull up behind the static header, fill full viewport */
body.home .hero--video {
    margin-top: -148px;
    min-height: calc(100vh - 180px);
    padding-top: 220px;
    padding-bottom: 80px;
}

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

.site-header__logo {
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

.site-header__logo img {
    height: 120px;
    width: auto;
    display: block;
}

.site-header__logo:hover {
    opacity: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-top: 20px;
}

.site-nav__link,
.site-nav__link:active,
.site-nav__link:focus,
.site-nav__link:visited {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    padding-bottom: 4px;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .site-nav__link:hover {
        color: var(--color-text-primary);
        opacity: 1;
    }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lang-switch {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    padding-bottom: 4px;
}

.lang-switch:hover {
    color: var(--color-text-primary);
    opacity: 1;
}

.site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 4px;
    line-height: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding-top: 72px;
    padding-bottom: 40px;
    background-color: var(--color-bg);
}

/* --- Video hero --- */
.hero--video {
    position: relative;
    overflow: hidden;
    background-color: #0f1420;
    padding-top: 96px;
    padding-bottom: 72px;
    min-height: 560px;
}

.hero__video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Plain dark background — the poster image lives on each <video> via its native
     * `poster` attribute (set in parts/hero.php). Keeping a competing background-image
     * here caused a visible blend / "mirage" with the first decoded video frames
     * because the JPG and the live frames differ slightly in compression. */
    background-color: #0a0e1a;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__video--active {
    opacity: 1;
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(10, 14, 26, 0.78) 0%,
        rgba(10, 14, 26, 0.72) 50%,
        rgba(10, 14, 26, 0.52) 100%
    );
}

.hero--video .container {
    position: relative;
    z-index: 1;
}

/* Text colours on video hero */
.hero--video .hero__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.hero--video .hero__title {
    color: #ffffff;
}

.hero--video .hero__subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.hero--video .hero__description {
    color: rgba(255, 255, 255, 0.68);
}

/* Buttons on video hero */
.hero--video .hero__actions .btn-primary {
    background: #ffffff;
    color: var(--color-text-primary);
    border-color: #ffffff;
}

.hero--video .hero__actions .btn-primary:hover {
    opacity: 0.88;
}

.hero--video .hero__actions .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero--video .hero__actions .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

/* Mobile (≤600 px): no hero video. Light-beige hero, dark text on light bg.
 * JS removes the <video> elements so nothing is fetched. */
@media (max-width: 600px) {
    .hero__video {
        display: none;
    }

    /* Header: normal beige on mobile */
    body.home .site-header {
        background: var(--color-bg);
    }
    body.home .site-header .site-header__logo img {
        filter: none;
    }
    body.home .site-header .site-nav__link,
    body.home .site-header .lang-switch {
        color: var(--color-text-muted);
    }
    body.home .site-header .site-header__toggle {
        color: var(--color-text-primary);
    }

    /* Open mobile menu — light beige */
    body.home .site-header .site-nav.is-open {
        background: var(--color-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    body.home .site-header .site-nav.is-open .site-nav__link,
    body.home .site-header .site-nav.is-open .lang-switch {
        color: var(--color-text-primary);
        border-color: rgba(30, 41, 59, 0.08);
    }

    /* Hero: light variant, no negative margin, no forced height */
    body.home .hero--video {
        background-color: var(--color-bg);
        margin-top: 0;
        min-height: 0;
        padding-top: 52px;
        padding-bottom: 36px;
    }
    body.home .hero--video .hero__video-bg,
    body.home .hero--video .hero__video-overlay {
        display: none;
    }

    /* Text: dark on light */
    body.home .hero--video .hero__eyebrow     { color: var(--color-text-muted); }
    body.home .hero--video .hero__title       { color: var(--color-text-primary); }
    body.home .hero--video .hero__subtitle    { color: var(--color-text-primary); }
    body.home .hero--video .hero__description { color: var(--color-text-muted); }

    /* Buttons */
    body.home .hero__actions .btn-primary {
        background: var(--color-button-bg);
        color: var(--color-button-text);
        border-color: transparent;
    }
    body.home .hero__actions .btn-secondary {
        background: transparent;
        color: var(--color-text-primary);
        border-color: var(--color-text-primary);
    }
    body.home .hero__actions .btn-secondary:hover,
    body.home .hero__actions .btn-secondary:focus,
    body.home .hero__actions .btn-secondary:active {
        background: var(--color-text-primary);
        color: #ffffff;
        border-color: var(--color-text-primary);
        opacity: 1;
    }
}

/* Tablet-only hero padding (601–768px): does not apply to mobile ≤600px */
@media (min-width: 601px) and (max-width: 768px) {
    body.home .hero--video {
        padding-top: 175px;
        padding-bottom: 60px;
    }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.hero__col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__col-card {
    display: flex;
}

#cl-benefits {
    display: flex;
    flex-direction: column;
    width: 100%;
}


.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .hero__eyebrow {
        display: block;
        font-size: 11px;
        letter-spacing: 0.06em;
        line-height: 1.45;
        text-align: center;
    }
}

.hero__title {
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    line-height: 1.12;
}

.hero__title em {
    font-style: italic;
    font-weight: 500;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.38;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.hero__subtitle em {
    font-style: italic;
    font-weight: 500;
}

.hero__description {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.68;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

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


/* ============================================================
   BENEFITS CARD (#cl-benefits — inside hero right column)
   ============================================================ */

#cl-benefits {
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.1);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.08);
}

#cl-benefits .ben-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9090a8;
    margin-bottom: 24px;
    line-height: 1.4;
}

#cl-benefits .ben-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

#cl-benefits .ben-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

#cl-benefits .ben-item:first-child { padding-top: 0; }
#cl-benefits .ben-item:last-child  { border-bottom: none; padding-bottom: 0; }

#cl-benefits .ben-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#cl-benefits .ben-icon--blue { background: #e8eef9; }
#cl-benefits .ben-icon--teal { background: #e6f4f1; }
#cl-benefits .ben-icon--gold { background: #fdf6e8; }
#cl-benefits .ben-icon--dark { background: rgba(26, 26, 46, 0.07); }

#cl-benefits .ben-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#cl-benefits .ben-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.3;
}

#cl-benefits .ben-desc {
    font-size: 13px;
    color: #5a5a72;
    line-height: 1.5;
}

/* ============================================================
   VALUE STRIP SECTION
   ============================================================ */

.value-strip {
    padding-block: 48px;
    background-color: var(--color-bg);
}

.value-strip__header {
    margin-bottom: 48px;
}

.value-strip .section-label {
    display: inline-block;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.value-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--color-white);
    border: 1px solid rgba(26, 26, 46, 0.1);
    border-radius: 20px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
}

.value-card__num {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9090a8;
    margin-bottom: 16px;
    font-weight: 500;
    font-family: var(--font-heading);
}

.value-card__title {
    font-family: var(--font-card-title);
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.2;
}

.value-card__desc {
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a72;
    margin: 0;
}

/* ============================================================
   GAIN CARDS — Operating model section
   ============================================================ */

.gain-cards {
    padding-block: 48px;
    background-color: var(--color-text-primary);
}

.gain-cards__header {
    margin-bottom: 48px;
}

.gain-cards .section-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.gain-cards__header h2 {
    color: #ffffff;
}

.gain-cards__grid {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.gain-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    color: rgba(255, 255, 255, 0.25);
}

.gain-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
}

.gain-card__num {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    font-weight: 500;
    font-family: var(--font-heading);
}

.gain-card__title {
    font-family: var(--font-card-title);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.gain-card__desc {
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ============================================================
   APPROACH — connected system (light)
   ============================================================ */
.approach {
    padding-block: 72px;
    background-color: var(--color-bg);
}

.approach__header {
    max-width: 760px;
    margin-bottom: 40px;
}

.approach .section-label {
    display: inline-block;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.approach__heading {
    margin: 0 0 16px;
}

.approach__sub {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* connected-system visual — editorial index */
.approach__system {
    margin: 8px 0 44px;
    padding: 48px 40px 36px;
    background: var(--color-white);
    border: 1px solid rgba(26, 26, 46, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
}

.approach__index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 56px;
    row-gap: 32px;
}

.approach__entry {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: baseline;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.approach__entry:hover {
    border-bottom-color: var(--color-text-primary);
}

.approach__entry-num {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.approach__entry-dash {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--color-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.approach__entry-name {
    font-family: var(--font-card-title);
    font-size: 21px;
    font-weight: 700;
    color: var(--color-card-heading);
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.approach__entry-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.approach__entry:hover .approach__entry-arrow {
    opacity: 1;
    transform: translateX(0);
}

.approach__entry:hover .approach__entry-dash {
    color: var(--color-text-primary);
}

.approach__entry-meta {
    grid-column: 3 / 5;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* horizontal rule with caption */
.approach__rule {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.approach__rule-line {
    flex: 1;
    height: 1px;
    background: rgba(30, 41, 59, 0.14);
}

.approach__rule-label {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* discover-all CTA */
.approach__all {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
}

.approach__all svg {
    transition: transform 0.2s ease;
}

.approach__all:hover svg {
    transform: translateX(3px);
}

/* responsive */
@media (max-width: 860px) {
    .approach__system {
        padding: 36px 26px 28px;
        gap: 26px;
    }

    .approach__index {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 36px;
        row-gap: 24px;
    }

    .approach__entry-name {
        font-size: 19px;
    }

    .approach__rule-label {
        font-size: 10px;
        letter-spacing: 0.12em;
        white-space: normal;
        text-align: center;
        flex-shrink: 1;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .approach__system {
        padding: 28px 20px 24px;
    }

    .approach__index {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .approach__entry-name {
        font-size: 18px;
    }

    /* Very narrow: hide the decorative side lines, let the label sit centered
     * and wrap to as many lines as it needs without overflow. */
    .approach__rule-line {
        display: none;
    }

    .approach__rule-label {
        font-size: 9px;
        letter-spacing: 0.08em;
        line-height: 1.4;
        width: 100%;
    }
}

/* how we work */
.approach__principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.approach__principle {
    border-top: 2px solid var(--color-text-primary);
    padding-top: 16px;
}

.approach__p-title {
    font-family: var(--font-card-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-card-heading);
    margin: 0 0 6px;
    line-height: 1.3;
}

.approach__p-text {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .approach {
        padding-block: 44px;
    }

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

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

    .approach__link {
        width: 14px;
    }
}

/* ============================================================
   TIMELY BAR — slim dismissible bottom bar (CT deadline / e-invoicing)
   ============================================================ */
.tb-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 500;
    width: calc(100% - 48px);
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 13px 22px;
    background: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%) translateY(110%);
    transition: transform 0.35s ease;
}

.tb-bar.is-visible {
    transform: translateX(-50%) translateY(0);
}

.tb-bar__left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tb-bar__count {
    font-family: var(--font-card-title);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.05;
    white-space: nowrap;
}

.tb-bar__meta {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.tb-bar__msg {
    flex: 1;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.tb-bar__msg strong {
    color: #ffffff;
    font-weight: 600;
}

.tb-bar__action {
    flex-shrink: 0;
}

.tb-bar__cta {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #1e293b;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--button-radius);
    transition: opacity 0.2s ease;
}

.tb-bar__cta:hover { opacity: 0.9; }

.tb-bar__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.tb-bar__close:hover { color: #ffffff; }

/* Mobile-only short meta: hidden on desktop by default */
.tb-bar__meta--short { display: none; }

@media (max-width: 680px) {
    /* Match pa-sticky mobile form: full-width edge-to-edge bottom strip, no rounding.
     * Use flex `space-between` (not grid) so countdown+label pin to the left and
     * CTA pins to the right — display:none on `.tb-bar__msg` was shifting the CTA
     * into the wrong grid column. Corner buttons get lifted via `body.tb-open`. */
    .tb-bar {
        left: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 40px 10px 16px; /* extra right padding for the absolute × */
        transform: translateY(110%);
    }

    .tb-bar.is-visible {
        transform: translateY(0);
    }

    .tb-bar__left {
        min-width: 0;
    }

    .tb-bar__count {
        font-size: 18px;
    }

    /* Swap the long meta for the short "until CT filing" version on mobile */
    .tb-bar__meta--full { display: none; }
    .tb-bar__meta--short {
        display: block;
        font-size: 10px;
        letter-spacing: 0.05em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    /* Hide the verbose description — keep the bar to its minimum */
    .tb-bar__msg { display: none; }

    .tb-bar__cta {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Pull close button out of grid flow and pin to the right edge */
    .tb-bar__close {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        font-size: 20px;
        padding: 4px;
        line-height: 1;
    }

    /* Lift the corner buttons above the bar so they don't get hidden behind it.
     * Compact bar is ~60px tall; 76px = ~64px height + 12px gap (matches pa-sticky). */
    body.tb-open .scroll-top {
        bottom: calc(64px + 12px);
        transition: bottom 0.3s ease, opacity 0.3s, visibility 0.3s, transform 0.3s;
    }
    body.tb-open #cl-cc-revisit {
        bottom: calc(64px + 12px) !important;
        transition: bottom 0.3s ease;
    }
}

/* ============================================================
   CASES — track record (light, full-width rows)
   ============================================================ */
.cases {
    padding-block: 72px;
    background-color: var(--color-bg);
}

.cases__header {
    margin-bottom: 36px;
}

.cases .section-label {
    display: inline-block;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.cases__heading {
    margin: 0;
}

.cases__list {
    border-top: 1px solid rgba(30, 41, 59, 0.12);
}

.case-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    padding: 28px 8px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.12);
    transition: background 0.22s ease;
}

.case-row:hover {
    background: rgba(30, 41, 59, 0.025);
}

.case-row__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-row__index {
    font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    color: rgba(30, 41, 59, 0.35);
    font-variant-numeric: tabular-nums;
}

.case-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-row__tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid rgba(30, 41, 59, 0.18);
    border-radius: 100px;
    padding: 4px 10px;
}

.case-row__main {
    min-width: 0;
}

.case-row__title {
    font-family: var(--font-card-title);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-card-heading);
    margin: 0 0 8px;
}

.case-row__text {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .cases {
        padding-block: 44px;
    }

    .case-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 4px;
    }

    .case-row__aside {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--color-bg);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 20px 24px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(30, 41, 59, 0.1);
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
}

.stat__label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.45;
    max-width: 180px;
    margin-inline: auto;
}

/* ============================================================
   PAIN SECTION
   ============================================================ */

/* PAIN + RELIEF — combined dark section */

.pain-relief {
    padding-block: 48px;
    background-color: var(--color-text-primary);
}

.pain-relief__intro {
    max-width: 680px;
    margin-bottom: 48px;
}

.pain-relief .section-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.pain-relief__heading {
    font-size: clamp(32px, 4vw, 48px);
    color: #ffffff;
    margin-bottom: 20px;
}

.pain-relief__desc {
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 32px;
}

/* Two-column layout: pains left, cards right */

.pain-relief__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 64px;
    align-items: center;
}

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

.pain-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-block: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pain-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pain-item__dash {
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
    line-height: 1.6;
    flex-shrink: 0;
}

.pain-item__text {
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}


/* Pain cards (right column) */

.pain-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 14px;
}

.pain-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--button-radius);
    padding: 18px 18px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pain-card:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}

.pain-card:hover .pain-card__icon {
    color: rgba(255, 255, 255, 0.85);
}

.pain-card:hover .pain-card__label {
    color: rgba(255, 255, 255, 0.7);
}

.pain-card__head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

.pain-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
}

.pain-card__icon svg {
    width: 17px;
    height: 17px;
}

.pain-card__num {
    font-family: var(--font-heading);
    font-size: clamp(19px, 2vw, 22px);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.pain-card__label {
    font-family: var(--font-heading);
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================================
   SERVICES GRID SECTION
   ============================================================ */

.services-section {
    padding-block: 48px;
    background-color: var(--color-bg);
}

.services-section__header {
    margin-bottom: 52px;
}

.services-section .section-label {
    display: inline-block;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.services-section__heading {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.services-section__sub {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0;
}

/* #cl-services — scoped card system */

#cl-services {
    --ink: #1a1a2e;
    --ink-muted: #5a5a72;
    --ink-light: #9090a8;
    --accent: #2e5baa;
    --accent-mid: #4a7fd4;
    --border: rgba(26, 26, 46, 0.1);
    --r-lg: 20px;
    --r-sm: 6px;
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.1);
}

#cl-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

#cl-services .service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s;
}

#cl-services .service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

#cl-services .service-card.featured {
    background: var(--ink);
}

#cl-services .service-num {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 16px;
    font-weight: 500;
    font-family: var(--font-heading);
}

#cl-services .service-card.featured .service-num {
    color: rgba(255, 255, 255, 0.4);
}

#cl-services .service-title {
    font-family: var(--font-card-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.2;
}

#cl-services .service-card.featured .service-title {
    color: #ffffff;
}

#cl-services .service-desc {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

#cl-services .service-desc a {
    color: var(--ink-muted);
    text-decoration: underline;
    transition: color 0.2s ease;
}

#cl-services .service-desc a:hover {
    color: var(--ink);
    text-decoration: none;
}

#cl-services .service-card.featured .service-desc {
    color: rgba(255, 255, 255, 0.65);
}

#cl-services .service-items {
    list-style: none;
    flex: 1;
    margin-bottom: 20px;
    padding: 0;
}

#cl-services .service-items li {
    font-family: var(--font-heading);
    font-size: 13.5px;
    color: var(--ink-muted);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

#cl-services .service-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

#cl-services .service-card.featured .service-items li {
    color: rgba(255, 255, 255, 0.75);
}

#cl-services .service-card.featured .service-items li::before {
    background: var(--accent-mid);
}

#cl-services .service-btn {
    display: block;
    text-align: center;
    margin-top: auto;
    padding: 11px;
    border-radius: var(--r-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--ink);
    color: #ffffff;
    background: var(--ink);
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

#cl-services .service-btn:hover {
    opacity: 0.85;
}

#cl-services .service-card.featured .service-btn {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--ink);
    background: #ffffff;
}

#cl-services .service-card.featured .service-btn:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
}

/* Wide card — 07 / Financial Analysis */

#cl-services .service-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: var(--ink);
    border-color: transparent;
}

#cl-services .service-card--wide .service-num { color: rgba(255,255,255,0.4); }
#cl-services .service-card--wide .service-title { color: #ffffff; }
#cl-services .service-card--wide .service-desc { color: rgba(255,255,255,0.65); }
#cl-services .service-card--wide .service-btn {
    display: inline-block;
    margin-top: 0;
    padding: 13px 26px;
    font-size: 15px;
    background: #ffffff;
    border-color: rgba(255,255,255,0.35);
    color: var(--ink);
}
#cl-services .service-card--wide .service-btn:hover {
    background: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.88);
    opacity: 1;
}
#cl-services .service-card--wide .service-items li { color: rgba(255,255,255,0.75); }
#cl-services .service-card--wide .service-items li::before { background: var(--accent-mid); }

#cl-services .service-card--wide__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#cl-services .service-card--wide__right {
    padding-top: 4px;
}

/* Pair row — two equal cards side by side */
#cl-services .service-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 768px) {
    #cl-services .service-pair {
        grid-template-columns: 1fr;
    }
}

/* ERP / Dashboard block */

#cl-erp {
    margin-top: 24px;
}

#cl-erp .erp-wrap {
    background: linear-gradient(135deg, #2e5baa 0%, #1a3a7a 100%);
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#cl-erp .erp-wrap::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

#cl-erp .erp-wrap::after {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

#cl-erp .erp-left {
    position: relative;
    z-index: 1;
}

#cl-erp .erp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    white-space: nowrap;
}

#cl-erp .erp-badge::before {
    content: '✦';
    font-size: 9px;
    color: #fbbf24;
}

#cl-erp .erp-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 14px;
}

#cl-erp .erp-desc {
    font-family: var(--font-heading);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin-bottom: 28px;
}

#cl-erp .erp-cta {
    background: #ffffff;
    color: #1a1a2e;
    padding: 13px 26px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

#cl-erp .erp-cta:hover {
    opacity: 0.85;
}

#cl-erp .erp-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

#cl-erp .metric-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: default;
}

#cl-erp .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#cl-erp .metric-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

#cl-erp .metric-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

#cl-erp .metric-value.positive {
    color: #6ee7b7;
}

#cl-erp .metric-sub {
    font-family: var(--font-heading);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Feature row: Process Automation card + Dashboard side by side */
#cl-services .cl-feature-row {
    display: grid;
    grid-template-columns: 1fr 2fr;   /* AI 1/3 · Dashboard 2/3 */
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}
#cl-services .cl-feature-row .cl-pa-card {
    height: 100%;
    padding: 30px;
}
#cl-services .cl-feature-row #cl-erp {
    margin-top: 0;
}
#cl-services .cl-feature-row #cl-erp .erp-wrap {
    gap: 30px;
    padding: 30px;
    height: 100%;
    overflow: hidden;
    align-items: stretch;
}
#cl-services .cl-feature-row #cl-erp .erp-left {
    display: flex;
    flex-direction: column;
}
#cl-services .cl-feature-row #cl-erp .erp-cta {
    margin-top: auto;
    align-self: flex-start;
}
#cl-services .cl-feature-row #cl-erp .erp-metrics {
    align-self: center;
}
#cl-services .cl-feature-row #cl-erp .erp-title { margin-bottom: 24px; }
#cl-services .cl-feature-row #cl-erp .erp-desc { margin-bottom: 20px; }
#cl-services .cl-feature-row #cl-erp .metric-card { padding: 16px; }
@media (max-width: 900px) {
    #cl-services .cl-feature-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing-section {
    padding-block: 48px;
    background-color: var(--color-text-primary);
}

.pricing-section__header {
    margin-bottom: 48px;
}

.pricing-section .section-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.pricing-section__heading {
    color: #ffffff;
    margin-bottom: 10px;
}

.pricing-section__heading em {
    font-style: normal;
    display: inline;
    outline: 1.5px solid rgba(147, 184, 240, 0.55);
    border-radius: 6px;
    padding: 2px 10px;
    color: #93b8f0;
}

.pricing-section__sub {
    font-family: var(--font-heading);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* #cl-pricing — scoped card system */

#cl-pricing {
    --ink: #1a1a2e;
    --ink-muted: #5a5a72;
    --ink-light: #9090a8;
    --accent: #2e5baa;
    --accent-light: #e8eef9;
    --border: rgba(26, 26, 46, 0.1);
    --border-soft: rgba(26, 26, 46, 0.06);
    --r-lg: 20px;
    --r-sm: 6px;
    --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.1);
}

#cl-pricing .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

#cl-pricing .pkg-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#cl-pricing .pkg-card.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
}

#cl-pricing .pkg-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

#cl-pricing .pkg-tier {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    font-weight: 500;
    margin-bottom: 8px;
}

#cl-pricing .pkg-title {
    font-family: var(--font-card-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.2;
}

#cl-pricing .pkg-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

#cl-pricing .pkg-price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}

#cl-pricing .pkg-from {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--ink-light);
    line-height: 1.4;
}

#cl-pricing .pkg-amount {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    white-space: nowrap;
}

#cl-pricing .pkg-currency {
    font-size: 18px;
    font-weight: 500;
}

#cl-pricing .pkg-amount-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    width: 100%;
}

#cl-pricing .pkg-period {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
    width: 100%;
}

#cl-pricing .pkg-items {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
    padding: 0;
}

#cl-pricing .pkg-items li {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--ink-muted);
    padding: 7px 0 7px 22px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
    line-height: 1.5;
}

#cl-pricing .pkg-items li:last-child {
    border-bottom: none;
}

#cl-pricing .pkg-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 2px solid var(--accent);
}

#cl-pricing .pkg-btn {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: var(--r-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--ink);
    color: #ffffff;
    background: var(--ink);
    transition: opacity 0.2s;
    margin-top: auto;
    width: 100%;
}

#cl-pricing .pkg-btn:hover {
    opacity: 0.85;
}

#cl-pricing .pkg-card.featured .pkg-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

#cl-pricing .pkg-card.featured .pkg-btn:hover {
    opacity: 0.85;
}


/* Wide card — one-time, desktop only */

#cl-pricing .pkg-card.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 32px;
    align-items: start;
    flex-direction: unset;
}

#cl-pricing .pkg-wide-items {
    margin-bottom: 0;
}

#cl-pricing .pkg-wide-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#cl-pricing .pkg-note {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   COMPARISON TABLE SECTION
   ============================================================ */

.comparison-section {
    padding-block: 48px;
    background-color: var(--color-bg);
}

.comparison-section__header {
    margin-bottom: 48px;
}

.comparison-section .section-label {
    display: inline-block;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.comparison-section__sub {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: 12px;
    margin-bottom: 0;
}

.comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.comparison-table thead th {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid rgba(30, 41, 59, 0.1);
    white-space: nowrap;
}

.comparison-table thead th:first-child {
    width: 30%;
    color: var(--color-text-primary);
    font-size: 14px;
}

.comparison-table thead th.th-cl {
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.comparison-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.025);
}

.comparison-table td {
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-size: 15px;
    color: var(--color-text-primary);
    font-weight: 400;
}

.comparison-table td.cl-col {
    background: rgba(30, 41, 59, 0.03);
}

.mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.mark__icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.mark__text {
    font-size: 13px;
    font-weight: 400;
}

.mark--yes     { color: #1a7a4a; }
.mark--partial { color: #a06000; }
.mark--no      { color: #b5292a; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
    padding-block: 48px;
    background-color: var(--color-text-primary);
}

.about-section .section-label {
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.about-section__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-section__left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-section__heading {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.about-section__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-section__body p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.about-section__body p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.about-section__signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.about-section__signature-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.about-section__signature-role {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.about-section .cl-guide-form {
    max-width: none;
}

.about-section__photo-wrap {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.about-section__photo {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   LEAD MAGNET SECTION
   ============================================================ */

.lead-magnet {
    padding-block: 48px;
    background-color: var(--color-text-primary);
}

/* ── cl-guide-form — PDF lead magnet form component ── */
.cl-guide-form *,
.cl-guide-form *::before,
.cl-guide-form *::after {
    box-sizing: border-box;
}

.cl-guide-form {
    width: 100%;
    max-width: 500px;
}

.cl-guide-form__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.cl-guide-form__icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-guide-form__icon svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.cl-guide-form__title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 5px;
}

.cl-guide-form__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
}

.cl-guide-form__group {
    margin-bottom: 10px;
}

.cl-guide-form__input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1f2e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.cl-guide-form__input::placeholder {
    color: #8a96b0;
}

.cl-guide-form__input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.cl-guide-form__input--error {
    border-color: #e05555;
    box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.15);
}

.cl-guide-form__consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px;
    cursor: pointer;
}

.cl-guide-form__consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.cl-guide-form__consent-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    cursor: pointer;
}

.cl-guide-form__consent-label a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.cl-guide-form__btn {
    background: #ffffff;
    color: #1a1f2e;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    display: inline-block;
    line-height: 1;
}

.cl-guide-form__btn:hover {
    background: #eef0f5;
}

.cl-guide-form__btn:active {
    transform: scale(0.98);
}

.cl-guide-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cl-guide-form__msg {
    margin-top: 14px;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.cl-guide-form__msg--success {
    background: rgba(93, 186, 122, 0.15);
    color: #7ee89e;
    border: 1px solid rgba(93, 186, 122, 0.35);
    display: block;
}

.cl-guide-form__msg--error {
    background: rgba(224, 85, 85, 0.15);
    color: #f08080;
    border: 1px solid rgba(224, 85, 85, 0.3);
    display: block;
}

/* ============================================================
   INSIGHTS SECTION
   ============================================================ */

.insights-section {
    padding-block: 48px;
    background-color: var(--color-bg);
}

.insights-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 24px;
}

.insights-section__header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.insights-section .section-label {
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 0;
}

.insights-section__link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.insights-section__heading {
    margin: 12px 0 0;
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    max-width: 720px;
}

.insights-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.insights-all svg {
    transition: transform 0.2s ease;
}

.insights-all:hover svg {
    transform: translateX(3px);
}

/* Mobile-only copy is hidden on desktop; flipped in @media (max-width: 768px) below. */
.insights-all--bottom {
    display: none;
}

/* Article cards — 3-up grid, light card + structured ink cover */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px -24px rgba(30, 41, 59, 0.45);
}

/* ── structured ink/navy cover ── */
.insight-card__cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 104px;
    padding: 18px;
    background-color: var(--color-card-heading);
    background-image:
        radial-gradient(120% 120% at 85% 8%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, #1A1A2E, #1E293B);
    overflow: hidden;
}

.insight-card__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
}

.insight-card__tag {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    padding: 4px 12px;
}

/* ── white body ── */
.insight-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 22px 20px;
}

.insight-card__title {
    font-family: var(--font-card-title);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-card-heading);
    margin: 0;
}

.insight-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.insight-card__read {
    white-space: nowrap;
}

.insight-card__meta {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-muted);
}

.insight-card__dot {
    margin: 0 3px;
    color: rgba(30, 41, 59, 0.3);
}

.insight-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.insight-card__arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.insight-card:hover .insight-card__arrow {
    transform: translateX(3px);
}

.insights-empty {
    color: var(--color-text-muted);
}

/* Pagination */
.insights-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}
.insights-pagination:empty {
    margin-top: 0;
    display: none;
}

.insights-pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-pager__arrow {
    background: none;
    border: 1.5px solid rgba(30, 41, 59, 0.2);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 16px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, color 0.18s;
}

.insights-pager__arrow:hover:not(:disabled) {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.insights-pager__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.insights-pager__dot {
    background: none;
    border: 1.5px solid rgba(30, 41, 59, 0.2);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.insights-pager__dot:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.insights-pager__dot.is-active {
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: #ffffff;
}

.insight-card .btn-secondary {
    align-self: flex-start;
    padding: 9px 18px;
    font-size: 13px;
}

/* ============================================================
   SECTION LABEL (oval pill) — global, reused across pages
   ============================================================ */

/* Hero tag — grey fill (used in page/service hero) */
.sd-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(30, 41, 59, 0.07);
    border: none;
    border-radius: 100px;
    padding: 5px 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Section labels — outlined, no fill */
.sd-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(30, 41, 59, 0.2);
    border-radius: 100px;
    padding: 5px 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.sd-label--light {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */

/* ── Dark variant (default) ── */
.contact-section {
    background-color: var(--color-text-primary);
    padding: 48px 0;
}


.contact-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 32px;
    text-align: center;
}

.contact-section__form {
    width: 100%;
}

/* Override clcf inputs for dark background */
.contact-section .clcf-field input:not([type="checkbox"]),
.contact-section .clcf-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.contact-section .clcf-field input:not([type="checkbox"]):focus,
.contact-section .clcf-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-section .clcf-field input::placeholder,
.contact-section .clcf-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-section .clcf-field input:-webkit-autofill,
.contact-section .clcf-field input:-webkit-autofill:hover,
.contact-section .clcf-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #253249 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

/* ── Light variant ── */
.contact-section--light {
    background-color: var(--color-bg);
}

.contact-section--light .contact-section__heading {
    color: var(--color-text-primary);
}

/* ── On dark .contact-section: form needs white text + white button to
 *    contrast with the navy background (otherwise button and text blend) ── */
.contact-section .clcf-submit {
    background: #ffffff;
    color: var(--color-text-primary);
}
.contact-section .clcf-submit:hover {
    background: rgba(255, 255, 255, 0.92);
}
.contact-section .clcf-consent {
    color: rgba(255, 255, 255, 0.75);
}
.contact-section .clcf-consent a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}
.contact-section .clcf-consent a:hover {
    color: #ffffff;
}
.contact-section .clcf-consent input[type="checkbox"] {
    accent-color: #ffffff;
}

/* Light variant overrides — back to dark text/button since bg is light */
.contact-section--light .clcf-submit {
    background: var(--color-button-bg);
    color: var(--color-button-text);
}
.contact-section--light .clcf-consent {
    color: var(--color-text-muted);
}
.contact-section--light .clcf-consent a {
    color: var(--color-text-primary);
}
.contact-section--light .clcf-consent input[type="checkbox"] {
    accent-color: var(--color-text-primary);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--color-bg);
    padding-top: 36px;
    padding-bottom: 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 28px;
}

.footer-col__heading {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 10px;
    line-height: 1.3;
}

.footer-brand__details {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-text-primary);
    opacity: 1;
}

/* Cookie preferences trigger — styled to look identical to footer links */
.footer-cookie-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-muted);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.footer-cookie-link:hover {
    color: var(--color-text-primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact p,
.footer-contact a {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s ease;
}

.footer-contact a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(103, 118, 142, 0.45);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--color-text-primary);
    opacity: 1;
    text-decoration-color: var(--color-text-primary);
}

.footer-contact__messenger {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-top: 2px;
}

.footer-contact__messenger a {
    color: var(--color-text-muted);
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(103, 118, 142, 0.45);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-contact__messenger a:hover {
    color: var(--color-text-primary);
    opacity: 1;
    text-decoration-color: var(--color-text-primary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-addr-break {
    display: none;
}

.footer-addr-sep {
    display: inline;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.footer-social__link:hover {
    opacity: 0.75;
}

.site-footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 16px;
}

.footer-copyright {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
    #cl-pricing .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #cl-pricing .pkg-card.wide {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

    #cl-pricing .pkg-wide-items {
        flex: 1;
        margin-bottom: 24px;
    }

    #cl-pricing .pkg-note {
        display: none;
    }

    #cl-pricing .pkg-wide-right {
        width: 100%;
    }

    #cl-pricing .pkg-card.wide .pkg-btn {
        display: block;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-inline: 50px;
    }
}

/* ============================================================
   TABLET PORTRAIT (~iPad portrait, ~601–1024px width, orientation:portrait)
   - Timely-bar: narrower (540px) so it horizontally clears scroll-top
     + cookie revisit pill; height stays close to desktop by wrapping the
     date meta and hiding the verbose two-line message; CTA pushed to
     the right edge with margin-left:auto.
   - Dashboard ERP card: flatten .erp-left so the "Learn more" CTA drops
     below the metrics grid (matches the mobile pattern).
   - Card 10 (.cl-pa-card) is moved into .services-grid via JS in
     parts/services-grid.php so it pairs with card 9 in row 5 col 2.
   ============================================================ */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {

    .tb-bar {
        max-width: 540px;
    }
    .tb-bar__meta--full {
        white-space: normal;
        line-height: 1.25;
    }
    .tb-bar__msg {
        display: none;
    }
    .tb-bar__action {
        margin-left: auto;
    }

    /* Dashboard card — must match the desktop rule specificity (0,4,0) so the
     * existing #cl-services .cl-feature-row #cl-erp ... rules don't keep
     * align-items: stretch, align-self: center on metrics, margin-top: auto
     * on the CTA, etc. */
    #cl-services .cl-feature-row #cl-erp .erp-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;
        padding: 24px;
        height: auto;
        overflow: visible;
    }
    #cl-services .cl-feature-row #cl-erp .erp-left {
        display: contents;
    }
    #cl-services .cl-feature-row #cl-erp .erp-badge { margin-bottom: 2px; }
    #cl-services .cl-feature-row #cl-erp .erp-title { margin-bottom: 4px; }
    #cl-services .cl-feature-row #cl-erp .erp-desc  { margin-bottom: 4px; }
    #cl-services .cl-feature-row #cl-erp .erp-metrics {
        order: 4;
        align-self: flex-start;
        justify-self: start;
        width: 100%;
        max-width: 380px;
        gap: 10px;
        margin-top: 6px;
    }
    #cl-services .cl-feature-row #cl-erp .metric-card { padding: 14px; }
    #cl-services .cl-feature-row #cl-erp .metric-value { font-size: 22px; }
    #cl-services .cl-feature-row #cl-erp .erp-cta {
        order: 5;
        align-self: flex-start;
        margin-top: 4px;
    }
}

/* ============================================================
   TABLET LANDSCAPE (iPad landscape, ~1025–1366px width, orientation:landscape)
   Flatten the dashboard card to the same stacked rhythm as portrait:
   title/description on top, 2×2 metric tiles in the middle, "Learn more"
   CTA at the bottom of the card. The desktop side-by-side 1fr 1fr split
   left the CTA stuck mid-card (bottom of the left column), and 2fr 3fr
   left the right-hand metrics too narrow even with shrunk fonts.
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    #cl-services .cl-feature-row #cl-erp .erp-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
        padding: 28px;
        height: auto;
        overflow: visible;
    }
    #cl-services .cl-feature-row #cl-erp .erp-left {
        display: contents;
    }
    #cl-services .cl-feature-row #cl-erp .erp-badge { margin-bottom: 2px; }
    #cl-services .cl-feature-row #cl-erp .erp-title { margin-bottom: 4px; }
    #cl-services .cl-feature-row #cl-erp .erp-desc  { margin-bottom: 4px; }
    #cl-services .cl-feature-row #cl-erp .erp-metrics {
        order: 4;
        align-self: flex-start;
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 12px;
        margin-top: 4px;
    }
    #cl-services .cl-feature-row #cl-erp .metric-card {
        padding: 14px 16px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    #cl-services .cl-feature-row #cl-erp .metric-label {
        font-size: 11px;
        white-space: nowrap;
    }
    #cl-services .cl-feature-row #cl-erp .metric-value {
        font-size: 22px;
        white-space: nowrap;
    }
    #cl-services .cl-feature-row #cl-erp .metric-sub {
        font-size: 10.5px;
    }
    #cl-services .cl-feature-row #cl-erp .erp-cta {
        order: 5;
        align-self: flex-start;
        margin-top: 4px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        padding-inline: 40px;
    }
}

@media (max-width: 960px) {
    .value-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gain-cards__grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .gain-arrow {
        display: flex;
        width: 100%;
        height: 30px;
    }

    .gain-arrow svg {
        transform: rotate(90deg);
    }

    #cl-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #cl-services .service-card--wide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #cl-erp .erp-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 28px;
    }

    /* footer stays 4 columns on tablet */
}

/* About: desktop = text + form stacked left, photo spanning right (centered).
   Mobile (<901px) auto-flows in DOM order: text → photo → form. */
@media (min-width: 901px) {
    .about-section__layout {
        grid-template-areas:
            "left  photo"
            "form  photo";
        align-items: start;
        row-gap: 28px;
    }
    .about-section__left { grid-area: left; }
    .about-section__layout > .cl-guide-form { grid-area: form; }
    .about-section__photo-wrap { grid-area: photo; align-self: center; }
}

@media (max-width: 1200px) {
    .site-header {
        position: relative;
    }

    body.home .site-header {
        position: relative;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 0 0;
        box-shadow: 0 8px 24px rgba(30, 41, 59, 0.1);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__link {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        border-bottom: 1px solid rgba(30, 41, 59, 0.08);
    }

    .lang-switch {
        width: 100%;
        padding: 16px 24px;
    }

    .site-header__toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .pain-relief__layout {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

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


    .contact-section__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }



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

    .stat-item + .stat-item::before {
        display: none;
    }

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

@media (max-width: 768px) {
    h2 {
        font-size: 34px;
    }

    .hero {
        padding-top: 52px;
        padding-bottom: 36px;
    }

    .hero--video {
        padding-bottom: 52px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        align-items: start;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__actions .btn-primary,
    .hero__actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    #cl-benefits {
        padding: 28px 24px;
    }

    .value-strip {
        padding-block: 40px;
    }

    .gain-cards {
        padding-block: 40px;
    }

    .stats {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .stat__number {
        font-size: 40px;
    }

    .pain-relief {
        padding-block: 40px;
    }

    .pain-cards {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding-block: 40px;
    }

    #cl-services .services-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    /* Feature row: same column width as services-grid, prevent overflow */
    #cl-services .cl-feature-row {
        grid-template-columns: minmax(0, 1fr);
    }
    #cl-services .cl-feature-row > * {
        min-width: 0;
    }
    #cl-services .cl-feature-row .cl-pa-card {
        padding: 28px 28px 24px;
    }
    #cl-services .cl-feature-row #cl-erp .erp-wrap {
        padding: 28px;
    }
    /* Metrics grid: allow tracks to shrink below their min-content */
    #cl-erp .erp-metrics {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    /* Flatten erp-left so erp-cta order applies and button drops below metrics */
    #cl-services .cl-feature-row #cl-erp .erp-left {
        display: contents;
    }
    /* Eyebrow pill: allow wrap on mobile so long labels don't overflow */
    #cl-erp .erp-badge {
        white-space: normal;
        max-width: 100%;
        line-height: 1.4;
        letter-spacing: 0.08em;
        margin-bottom: 2px;
    }
    /* Tighten title spacing on mobile */
    #cl-services .cl-feature-row #cl-erp .erp-title {
        margin-bottom: 8px;
    }
    #cl-services .cl-feature-row #cl-erp .erp-desc {
        margin-bottom: 6px;
    }

    /* Wide card: flatten __left so button can be ordered after the bullet list */
    #cl-services .service-card--wide {
        display: flex;
        flex-direction: column;
    }
    #cl-services .service-card--wide__left {
        display: contents;
    }
    #cl-services .service-card--wide__right {
        order: 4;
    }
    #cl-services .service-card--wide .service-btn {
        order: 5;
    }

    /* ERP: flatten erp-left so button can be ordered after metrics */
    #cl-erp .erp-wrap {
        display: flex;
        flex-direction: column;
        padding: 28px 20px;
    }
    #cl-erp .erp-left {
        display: contents;
    }
    #cl-erp .erp-metrics {
        order: 4;
    }
    #cl-erp .erp-cta {
        order: 5;
    }

    .pricing-section {
        padding-block: 40px;
    }

    #cl-pricing .pricing-grid {
        grid-template-columns: 1fr;
    }

    .comparison-section {
        padding-block: 40px;
    }

    .about-section {
        padding-block: 40px;
    }

    .insights-section {
        padding-block: 40px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insights-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Move "All insights" link below the posts on mobile */
    .insights-all--top {
        display: none;
    }
    .insights-all--bottom {
        display: inline-flex;
        margin-top: 12px;
    }

}

@media (max-width: 1024px) {
    /* Drop the empty spacer column → 3 equal columns */
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .site-footer__grid > .footer-col[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 576px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Footer — center all columns */
    .site-footer__grid > * {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact__messenger {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-addr-break {
        display: block;
    }

    .footer-addr-sep {
        display: none;
    }

    /* Hero — center title on phones */
    .hero__title {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .value-strip__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SINGLE POST — layout & article wrapper
   ============================================================ */

/* Remove footer separator on single posts */
.single .site-footer {
    border-top: none;
}

.post-navigation {
    display: none;
}

/* Article wrapper */
.post-article {
    padding-top: 48px;
    padding-bottom: 64px;
}

/* ── Inline contact form at the end of a post (light, in-body) ── */
/* Pull up to absorb .post-article's 64px padding-bottom so the form sits
   close to the article's closing lead-in paragraph. */
.post-contact {
    margin-top: -44px;
    padding: 0 0 72px;
}
@media (max-width: 600px) {
    .post-contact { margin-top: -32px; padding-bottom: 48px; }
}

/* ── Post header ── */
.post-header {
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.post-meta__date {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.post-meta__cat {
    display: none !important;
}

/* Suppress any plugin-injected metadata in single posts */
.single .cat-links,
.single .tags-links,
.single .entry-footer,
.single .entry-meta,
.single .post-categories,
.single .entry-categories,
.single .entry-tags,
.single .rank-math-breadcrumb,
.single .yoast-breadcrumb,
.single .breadcrumb-trail,
.post-article .cat-links,
.post-article .tags-links,
.post-article .entry-footer,
.post-article .entry-meta {
    display: none !important;
}

.post-title {
    font-family: var(--font-card-title);
    font-size: 46px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.25;
    margin: 0 0 8px;
}

.post-thumbnail {
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   SINGLE POST — entry-content typography
   ============================================================ */

.entry-content {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-primary);
}

/* Paragraphs */
.entry-content p {
    margin: 0 0 1.4em;
    color: var(--color-text-primary);
    font-size: 17px;
    line-height: 1.75;
}

/* Headings */
.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text-primary) !important;
    margin-top: 24px !important;
    margin-bottom: 0.9em !important;
    line-height: 1.3;
    padding-bottom: 0.55em;
    border-bottom: 1px solid #dde3ec;
}

.entry-content h3 {
    font-family: var(--font-card-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary) !important;
    margin-top: 18px !important;
    margin-bottom: 0.75em !important;
    line-height: 1.35;
}

.entry-content h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary) !important;
    margin: 1.5em 0 0.4em;
}

.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-primary) !important;
    margin: 1.3em 0 0.4em;
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
    margin-top: 0;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.6em;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.45em;
    line-height: 1.65;
}

.entry-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-size: 1.2em;
    line-height: 1.4;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content ol li {
    margin-bottom: 0.45em;
    line-height: 1.65;
    padding-left: 0.3em;
}

/* Nested lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.4em 0 0.4em;
}

/* Links — premium slide-in underline (matches service-detail pages).
   Buttons keep their own styling, so exclude them. */
.entry-content a:not(.btn-primary):not(.btn-secondary):not(.elementor-button) {
    color: var(--color-text-primary);
    font-weight: 500;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    transition: background-size 0.3s ease;
}

.entry-content a:not(.btn-primary):not(.btn-secondary):not(.elementor-button):hover {
    color: var(--color-text-primary);
    background-size: 100% 1.5px;
}

/* Strong & em */
.entry-content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.entry-content em {
    font-style: italic;
}

/* Blockquote */
.entry-content blockquote {
    border-left: 3px solid var(--color-text-primary);
    margin: 1.8em 0;
    padding: 16px 24px;
    background: rgba(30,41,59,0.04);
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 16px;
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 1px solid rgba(30,41,59,0.12);
    margin: 2.5em 0;
}

/* Inline code */
.entry-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background: rgba(30,41,59,0.06);
    color: var(--color-text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(30,41,59,0.1);
}

/* Code block */
.entry-content pre {
    background: #0F172A;
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.6em 0;
}

.entry-content pre code {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 0;
    border-radius: 0;
    line-height: 1.75;
}

/* Images in content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.6em auto;
}

.entry-content figure {
    margin: 1.8em 0;
}

.entry-content figcaption {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Tables in content */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 15px;
}

.entry-content th {
    background: rgba(30,41,59,0.05);
    padding: 10px 14px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid rgba(30,41,59,0.12);
    color: var(--color-text-primary);
}

.entry-content td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(30,41,59,0.08);
    vertical-align: top;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

/* WordPress alignment classes */
.entry-content .alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignwide  { max-width: 100%; }
.entry-content .alignfull  { max-width: 100%; }

/* Gutenberg separator block */
.entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid rgba(30,41,59,0.12);
    margin: 2.5em 0;
}

/* Gutenberg pullquote */
.entry-content .wp-block-pullquote {
    border-top: 3px solid var(--color-text-primary);
    border-bottom: 3px solid var(--color-text-primary);
    padding: 24px 0;
    margin: 2em 0;
    text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
}

.entry-content .wp-block-pullquote p {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
    font-style: normal;
}

/* WPForms inside posts */
.entry-content .wpforms-submit {
    background-color: var(--color-text-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-text-primary) !important;
}

.entry-content .wpforms-submit:hover {
    opacity: 0.88;
}

/* ── Mobile post ── */
@media (max-width: 768px) {
    .post-article {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .post-title {
        font-size: 28px;
    }

    .entry-content {
        font-size: 16px;
    }

    .entry-content p {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 22px;
    }

    .entry-content h3 {
        font-size: 18px;
    }
}

/* ============================================================
   EI COMPONENTS — rich content blocks used in articles
   ============================================================ */

:root {
    --ei-teal-50:    #e1f5ee;
    --ei-teal-100:   #9fe1cb;
    --ei-teal-600:   #0f6e56;
    --ei-teal-800:   #085041;
    --ei-purple-50:  #eeedfe;
    --ei-purple-100: #cecbf6;
    --ei-purple-600: #534ab7;
    --ei-purple-800: #3c3489;
    --ei-amber-50:   #faeeda;
    --ei-amber-100:  #fac775;
    --ei-amber-600:  #ba7517;
    --ei-amber-800:  #854f0b;
    --ei-coral-50:   #faece7;
    --ei-coral-100:  #f5c4b3;
    --ei-coral-600:  #993c1d;
    --ei-coral-800:  #712b13;
    --ei-blue-50:    #e6f1fb;
    --ei-blue-100:   #b5d4f4;
    --ei-blue-600:   #185fa5;
    --ei-blue-800:   #0c447c;
    --ei-gray-50:    #f1efe8;
    --ei-gray-800:   #444441;

    --ei-text:       #1a1a18;
    --ei-text-muted: #5f5e5a;
    --ei-text-light: #888780;
    --ei-border:     #d3d1c7;
    --ei-bg:         #ffffff;
    --ei-bg-2:       #f8f7f4;

    --ei-radius-sm:  6px;
    --ei-radius-md:  10px;
    --ei-radius-lg:  14px;
}

.ei-block {
    font-family: inherit;
    color: var(--ei-text);
    line-height: 1.6;
}

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

/* Tables */
.ei-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ei-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.ei-table thead tr {
    background: var(--ei-bg-2);
}

.ei-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--ei-text-muted);
    border-bottom: 2px solid var(--ei-border);
    white-space: nowrap;
}

.ei-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ei-border);
    vertical-align: top;
}

.ei-table tbody tr:last-child td {
    border-bottom: none;
}

.ei-table tbody tr:hover {
    background: var(--ei-bg-2);
}

/* Badges */
.ei-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ei-badge--teal   { background: var(--ei-teal-50);   color: var(--ei-teal-600);   }
.ei-badge--purple { background: var(--ei-purple-50);  color: var(--ei-purple-600); }
.ei-badge--amber  { background: var(--ei-amber-50);   color: var(--ei-amber-600);  }
.ei-badge--coral  { background: var(--ei-coral-50);   color: var(--ei-coral-600);  }

/* Timeline */
.ei-timeline {
    position: relative;
    padding: 8px 0 4px;
}

.ei-tl-spine {
    position: absolute;
    left: 19px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--ei-border);
    border-radius: 1px;
}

.ei-tl-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 6px 0;
}

.ei-tl-dot-wrap {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.ei-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--ei-bg);
    position: relative;
    z-index: 1;
}

.ei-tl-dot--teal   { background: var(--ei-teal-100);   box-shadow: 0 0 0 2px var(--ei-teal-600);   }
.ei-tl-dot--purple { background: var(--ei-purple-100);  box-shadow: 0 0 0 2px var(--ei-purple-600); }
.ei-tl-dot--amber  { background: var(--ei-amber-100);   box-shadow: 0 0 0 2px var(--ei-amber-600);  }

.ei-tl-card {
    flex: 1;
    border: 1px solid var(--ei-border);
    border-radius: var(--ei-radius-md);
    padding: 12px 16px;
    background: var(--ei-bg);
    transition: box-shadow 0.15s ease;
}

.ei-tl-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.ei-tl-card--teal   { border-left: 3px solid var(--ei-teal-600);   }
.ei-tl-card--purple { border-left: 3px solid var(--ei-purple-600); }
.ei-tl-card--amber  { border-left: 3px solid var(--ei-amber-600);  }

.ei-tl-date {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
}

.ei-tl-date--teal   { color: var(--ei-teal-800);   }
.ei-tl-date--purple { color: var(--ei-purple-800); }
.ei-tl-date--amber  { color: var(--ei-amber-800);  }

.ei-tl-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ei-text);
    margin: 0 0 2px;
}

.ei-tl-sub {
    font-size: 13px;
    color: var(--ei-text-muted);
    margin: 0;
}

/* Checklist */
.ei-checklist {
    display: flex;
    flex-direction: column;
}

.ei-cl-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ei-border);
}

.ei-cl-item:last-child {
    border-bottom: none;
}

.ei-cl-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.ei-cl-num--info { background: var(--ei-blue-50);   color: var(--ei-blue-800);   }
.ei-cl-num--ok   { background: var(--ei-teal-50);   color: var(--ei-teal-800);   }
.ei-cl-num--warn { background: var(--ei-amber-50);  color: var(--ei-amber-800);  }
.ei-cl-num--gray { background: var(--ei-gray-50);   color: var(--ei-gray-800);   }

.ei-cl-body { flex: 1; }

.ei-cl-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--ei-text);
}

.ei-cl-sub {
    font-size: 13px;
    color: var(--ei-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Callout / Note */
.ei-note {
    border-left: 3px solid var(--ei-amber-600);
    background: var(--ei-amber-50);
    border-radius: 0 var(--ei-radius-sm) var(--ei-radius-sm) 0;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ei-text);
    margin: 0;
}

.ei-note strong {
    color: var(--ei-amber-800);
}

/* Price cards */
.ei-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ei-price-card {
    border: 1px solid var(--ei-border);
    border-radius: var(--ei-radius-lg);
    padding: 16px 18px;
    background: var(--ei-bg);
}

.ei-price-card .ei-pc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ei-text-light);
    margin: 0 0 6px;
}

.ei-price-card .ei-pc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ei-text);
    margin: 0 0 10px;
}

.ei-price-card .ei-pc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid var(--ei-border);
    font-size: 13px;
}

.ei-price-card .ei-pc-row:last-child {
    border-bottom: none;
}

.ei-price-card .ei-pc-row-label {
    color: var(--ei-text-muted);
}

.ei-price-card .ei-pc-row-val {
    font-weight: 600;
    color: var(--ei-text);
    text-align: right;
    padding-left: 12px;
}

@media (max-width: 600px) {
    .ei-price-grid { grid-template-columns: 1fr; }
}

/* ─── Схема модели 5 углов ─── */
.ei-model { display: grid; gap: 0; }
.ei-model-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; align-items: end; }
.ei-model-fta { display: flex; justify-content: center; padding: 4px 0; }
.ei-m-node { border-radius: var(--ei-radius-md); padding: 12px; text-align: center; border: 1px solid var(--ei-border); }
.ei-m-node .ei-corner-label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 4px; opacity: 0.7; }
.ei-m-node .ei-node-title { font-size: 13px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.ei-m-node .ei-node-sub { font-size: 11px; margin: 0; opacity: 0.75; }
.ei-m-node--blue { background: var(--ei-blue-50); color: var(--ei-blue-800); border-color: var(--ei-blue-100); }
.ei-m-node--purple { background: var(--ei-purple-50); color: var(--ei-purple-800); border-color: var(--ei-purple-100); }
.ei-m-node--coral { background: var(--ei-coral-50); color: var(--ei-coral-800); border-color: var(--ei-coral-100); }
.ei-model-arrows { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin: 2px 0; }
.ei-arrow-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 36px; }
.ei-arrow-line { display: flex; align-items: center; width: 100%; padding: 0 12px; }
.ei-arrow-dash { flex: 1; height: 1px; background: var(--ei-text-muted); position: relative; }
.ei-arrow-dash::after { content: ''; position: absolute; right: -5px; top: -4px; border: 5px solid transparent; border-left-color: var(--ei-text-muted); }
.ei-arrow-label { font-size: 10px; color: var(--ei-text-light); text-align: center; font-weight: 500; }
.ei-fta-lines { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
.ei-fta-line-cell { display: flex; justify-content: center; }
.ei-fta-line-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ei-fta-dash-v { width: 1px; height: 32px; background: repeating-linear-gradient(to bottom, var(--ei-purple-600) 0, var(--ei-purple-600) 4px, transparent 4px, transparent 8px); }
.ei-fta-dash-label { font-size: 10px; color: var(--ei-purple-600); font-weight: 600; white-space: nowrap; }
.ei-fta-node { background: var(--ei-coral-50); color: var(--ei-coral-800); border: 1px solid var(--ei-coral-100); border-radius: var(--ei-radius-md); padding: 10px 32px; text-align: center; }
.ei-fta-node .ei-fta-title { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.ei-fta-node .ei-fta-sub { font-size: 12px; margin: 0; opacity: 0.75; }
.ei-model-note { margin: 10px 0 0; font-size: 13px; color: var(--ei-text-muted); }

/* ── Scroll to top ──────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    width: 52px;
    height: 52px;
    padding: 0;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(30, 41, 59, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s;
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    box-shadow: 0 4px 22px rgba(30, 41, 59, 0.2);
}
.scroll-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.scroll-top__track {
    stroke: rgba(30, 41, 59, 0.12);
    stroke-width: 2.5;
    fill: none;
}
.scroll-top__progress {
    stroke: #1E293B;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    /* circumference = 2 * π * 24 ≈ 150.796 */
    stroke-dasharray: 150.796;
    stroke-dashoffset: 150.796;
    transition: stroke-dashoffset 0.08s linear;
}
.scroll-top__icon {
    position: relative;
    width: 18px;
    height: 18px;
    color: #1E293B;
}

/* Mobile: subdued back-to-top so it doesn't compete with the sticky CTA.
 * Premium B2B feel — utility UI fades into the background. */
@media (max-width: 600px) {
    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
        box-shadow: 0 1px 6px rgba(30, 41, 59, 0.10);
        background: rgba(255, 255, 255, 0.85);
    }
    .scroll-top.is-visible {
        opacity: 0.7;
    }
    .scroll-top:hover,
    .scroll-top:focus,
    .scroll-top:active {
        opacity: 1;
    }
    .scroll-top__track {
        stroke: rgba(30, 41, 59, 0.08);
    }
    .scroll-top__progress {
        stroke: rgba(30, 41, 59, 0.55);
    }
    .scroll-top__icon {
        width: 16px;
        height: 16px;
        color: rgba(30, 41, 59, 0.7);
    }
}

/* ============================================================
   Section fade-in-up on scroll — driven by main.js IntersectionObserver.
   Wrapped in @media (prefers-reduced-motion: no-preference) so reduced-motion
   users (and a fallback if JS never sets is-visible) see a fully-laid-out
   page with no opacity tricks.
   ============================================================ */
/* Entry fade-in-up disabled site-wide — it read as a "flying page" transition
   when navigating to/from posts and the insights archive. main.js still adds
   .cl-fade-up but it now has no visual effect (renders immediately). To bring
   it back, restore the opacity:0 / translateY rest state below. */
.cl-fade-up,
.cl-fade-up.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   404 — used by pages/_404.php and the unknown-slug branch of
   pages/insight-single.php. Calm, brand-aligned, no marketing chrome.
   ============================================================ */
.cl-404 {
    padding: 100px 0 120px;
}
.cl-404__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.cl-404__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(30, 41, 59, 0.18);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    background: transparent;
}
.cl-404__numwrap {
    margin: 36px 0 24px;
    line-height: 1;
}
.cl-404__num {
    font-family: var(--font-heading);
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, var(--color-text-primary) 0%, rgba(30, 41, 59, 0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.cl-404__heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 16px;
    line-height: 1.25;
}
.cl-404__lead {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-primary);
    margin: 0 0 8px;
}
.cl-404__lead--soft {
    color: var(--color-text-muted);
    font-size: 15.5px;
    margin-bottom: 0;
}
.cl-404__cta {
    margin: 36px 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cl-404__btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--button-padding);
    border-radius: var(--button-radius);
    border: 1px solid var(--color-text-primary);
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cl-404__btn-ghost:hover {
    background: var(--color-text-primary);
    color: var(--color-button-text);
    text-decoration: none;
}
.cl-404__jump {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-text-muted);
}
.cl-404__jump-label {
    font-weight: 500;
    color: var(--color-text-muted);
}
.cl-404__jump a {
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 41, 59, 0.25);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}
.cl-404__jump a:hover {
    border-bottom-color: var(--color-text-primary);
}
.cl-404__jump-sep {
    color: rgba(30, 41, 59, 0.35);
}

@media (max-width: 600px) {
    .cl-404 {
        padding: 72px 0 80px;
    }
    .cl-404__numwrap {
        margin: 28px 0 20px;
    }
    .cl-404__cta {
        flex-direction: column;
        align-items: stretch;
        margin: 32px 0 28px;
    }
    .cl-404__cta .btn-primary,
    .cl-404__cta .cl-404__btn-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .cl-404__jump {
        font-size: 13px;
        gap: 8px;
    }
}
