/* ==========================================================================
   ConverthinkX brand layer – shared by every AI Toolkit page
   Palette taken from www.converthinkx.com
   ========================================================================== */
:root {
    --navy: #0b1f5b;
    --navy-deep: #081747;
    --navy-soft: #e8ecf8;
    --gold: #fbbc05;
    --gold-hover: #e5a900;
    --gold-ink: #8a6100;
    --cream: #fff6d6;
    --bg: #f7f8fc;
    --line: #e5e9f0;
    --muted: #6b7490;
    --font-head: "Manrope", "DM Sans", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    padding-bottom: 80px;
}
.cx-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.cx-hide-sm {
    display: inline-flex;
}
@media (max-width: 767px) {
    body {
        padding-bottom: 150px;
    }
}

/* ---------- top bar ---------- */
.cx-topbar {
    background: var(--navy);
    color: #fff;
    font-size: 16px;
}
.cx-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
}
.cx-topbar__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}
.cx-topbar a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cx-topbar a:hover {
    color: var(--gold);
}
.cx-topbar svg {
    color: var(--gold);
    flex-shrink: 0;
}
.cx-social {
    display: flex;
    gap: 8px;
}
.cx-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}
.cx-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ---------- header / nav ---------- */
.cx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}
.cx-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}
.cx-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.cx-logo img {
    height: auto;
    max-width: 290px !important;
    display: block;
}
.cx-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cx-nav__link {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(44, 44, 44);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cx-nav__link:hover,
.cx-nav__link.is-active {
    color: var(--gold-ink);
    background: transparent;
}
.cx-nav__link.is-active {
    box-shadow: inset 0 -2px 0 var(--gold);
    border-radius: 0;
}
.cx-nav__cta {
    margin-left: 12px;
}

.cx-dropdown {
    position: relative;
}
.cx-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(11, 31, 91, 0.14);
    display: none;
    z-index: 60;
}
.cx-dropdown.is-open .cx-dropdown__menu,
.cx-dropdown:hover .cx-dropdown__menu,
.cx-dropdown:focus-within .cx-dropdown__menu {
    display: block;
}
.cx-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
}
.cx-dropdown__menu a:hover,
.cx-dropdown__menu a.is-active {
    background: var(--cream);
}
.cx-dropdown__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cx-burger {
    display: none;
    background: none;
    border: 0;
    color: var(--navy);
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
}
.cx-burger:hover {
    background: var(--navy-soft);
    color: var(--navy);
}
.cx-burger__close {
    display: none;
}
.cx-header.is-open .cx-burger__open {
    display: none;
}
.cx-header.is-open .cx-burger__close {
    display: inline;
}

/* ---------- buttons ---------- */
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    padding: 15px 24px;
    border-radius: 8px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}
.cx-btn--gold {
    background: var(--gold);
    color: var(--navy);
}
.cx-btn--gold:hover {
    background: var(--gold-hover);
    color: var(--navy);
}
.cx-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}
.cx-btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}
.cx-nav__cta {
    padding: 13px 20px;
    font-size: 14px;
}

/* ---------- breadcrumb band ---------- */
.cx-crumbs {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    padding: 12px 0;
}
.cx-crumbs .cx-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.cx-crumbs a {
    color: #fff;
    text-decoration: none;
}
.cx-crumbs a:hover {
    color: var(--gold);
}
.cx-crumbs strong {
    color: var(--gold);
    font-weight: 700;
}

/* ---------- footer ---------- */
.cx-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.78);
    margin-top: 72px;
    font-size: 15px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 10;
}
.cx-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}
.cx-footer h3 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 12px;
}
.cx-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}
.cx-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.cx-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}
.cx-footer a:hover {
    color: var(--gold);
}
.cx-footer__about img {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}
.cx-footer__about p {
    margin: 0;
    line-height: 1.7;
    max-width: 38ch;
}
.cx-footer__contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.55;
}
.cx-footer__contact svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.cx-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- tool pages (card on soft background) ---------- */
body.tool-page {
    background: var(--bg);
    color: var(--navy);
}
body.tool-page .cx-footer {
    margin-top: 56px;
}
body.tool-page:not(.tool-page--chat) .page {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(11, 31, 91, 0.06);
    margin: 20px auto 0;
    padding: 20px 20px 20px;
    width: calc(100% - 32px);
    position: relative;
    overflow: hidden;
}
body.tool-page:not(.tool-page--chat) .page::after {
    /* signature cream quarter-circle from the website cards */
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--cream);
    pointer-events: none;
    z-index: 0;
}
body.tool-page:not(.tool-page--chat) .page > * {
    position: relative;
    z-index: 1;
}
body.tool-page--chat .page {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    margin-top: 32px;
    width: calc(100% - 32px);
    box-shadow: 0 12px 36px rgba(11, 31, 91, 0.06);
}
body.tool-page--chat .cx-footer {
    margin-top: 0;
}

body.tool-page .kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--cream);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
body.tool-page h1 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.15;
}
body.tool-page .tagline {
    font-style: normal;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}
body.tool-page .page h2,
body.tool-page .page h3 {
    font-family: var(--font-head);
    color: var(--navy);
}

/* primary actions → website's gold "Let's Talk" button */
body.tool-page button[type="submit"] {
    background: var(--gold);
    color: var(--navy);
    border: 0;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
}
body.tool-page button[type="submit"]:hover {
    background: var(--navy);
    color: #fff;
}
body.tool-page button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
body.tool-page input:focus,
body.tool-page textarea:focus,
body.tool-page select:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
    border-color: var(--navy);
}
body.tool-page input,
body.tool-page textarea,
body.tool-page select {
    border-radius: 8px;
    border-color: var(--line);
}
body.tool-page label {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--navy);
}
body.tool-page .results__divider {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0;
}
body.tool-page :focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* ---------- home page ---------- */
.cx-hero {
    background:
        radial-gradient(
            1200px 400px at 85% 0,
            rgba(251, 188, 5, 0.18),
            transparent 60%
        ),
        var(--navy);
    color: #fff;
}
.cx-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 88px;
}
.cx-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--cream);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.cx-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
}
.cx-hero h1 em {
    font-style: normal;
    color: var(--gold);
}
.cx-hero p {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 54ch;
    margin: 0 0 32px;
}
.cx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.cx-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cx-stat {
    background: #fff;
    color: var(--navy);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.cx-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cx-stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.cx-stat span.l {
    font-size: 13px;
    color: var(--muted);
}

.cx-section {
    padding: 30px 0 24px;
}
.cx-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.cx-section__head h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin: 0 0 14px;
}
.cx-section__head h2 em {
    font-style: normal;
    color: var(--gold);
}
.cx-section__head p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.cx-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.cx-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 264px;
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.cx-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--cream);
}
.cx-card.is-dark {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.cx-card.is-dark::after {
    background: rgba(255, 255, 255, 0.12);
}
.cx-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(11, 31, 91, 0.16);
}
.cx-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.cx-card h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
    color: inherit;
    position: relative;
    z-index: 1;
}
.cx-card p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.cx-card.is-dark p {
    color: rgba(255, 255, 255, 0.78);
}
.cx-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.cx-card.is-dark .cx-card__link {
    color: var(--gold);
}

.cx-cta {
    margin-top: 88px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 72px 0;
}
.cx-cta h2 {
    font-family: var(--font-head);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
}
.cx-cta h2 em {
    font-style: normal;
    color: var(--gold);
}
.cx-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 56ch;
    margin: 0 auto 30px;
    line-height: 1.65;
}
body.home-page .cx-footer {
    margin-top: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .cx-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .cx-hero__inner {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 64px;
    }
}
@media (max-width: 900px) {
    .cx-burger {
        display: inline-flex;
    }
    .cx-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-top: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 20px;
        gap: 0;
        box-shadow: 0 18px 30px rgba(11, 31, 91, 0.12);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .cx-header.is-open .cx-nav {
        display: flex;
    }
    .cx-nav__link {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        justify-content: space-between;
        width: 100%;
    }
    .cx-nav__link.is-active {
        box-shadow: none;
        color: var(--gold-ink);
    }
    .cx-nav__cta {
        margin: 16px 0 0;
        width: 100%;
    }
    .cx-dropdown:hover .cx-dropdown__menu,
    .cx-dropdown:focus-within .cx-dropdown__menu {
        display: none;
    }
    .cx-dropdown.is-open .cx-dropdown__menu {
        display: block;
    }
    .cx-dropdown__menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 4px 0 8px;
        min-width: 0;
    }
}
@media (max-width: 640px) {
    .cx-hide-sm {
        display: none;
    }
    .cx-cards {
        grid-template-columns: 1fr;
    }
    .cx-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
    }
    .cx-hero__stats {
        grid-template-columns: 1fr;
    }
    body.tool-page:not(.tool-page--chat) .page {
        padding: 32px 20px 40px;
        margin-top: 24px;
    }
    .cx-logo img {
        height: auto;
        max-width: 200px;
    }
    .cx-header__inner {
        min-height: 68px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .cx-card,
    .cx-btn {
        transition: none;
    }
    .cx-card:hover {
        transform: none;
    }
}

/* ---------- chat-style pages: keep the sticky composer attached to the card ---------- */
body.tool-page--chat .page {
    border-bottom: 0;
}
body.tool-page--chat .composer,
body.tool-page--chat .controls {
    background: var(--bg);
    border-top: 0;
    padding-top: 0;
}
body.tool-page--chat .composer .page,
body.tool-page--chat .controls .page {
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 16px 28px 22px !important;
    box-shadow: 0 12px 36px rgba(11, 31, 91, 0.06);
}

@media (max-width: 640px) {
    .cx-topbar a.cx-hide-sm {
        display: none;
    }
    .cx-topbar__inner {
        min-height: 44px;
    }
}

/* ---------- tool pages: wide card, compact heading, input | result on one row ---------- */
body.tool-page:not(.tool-page--chat) .page {
    max-width: 1080px;
}
body.tool-page:not(.tool-page--chat) h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
}
body.tool-page:not(.tool-page--chat) .tagline {
    margin: 0 0 14px;
}
body.tool-page:not(.tool-page--chat) .notice,
body.tool-page:not(.tool-page--chat) .field-errors {
    margin-bottom: 20px;
}

.tool-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.tool-split__col {
    min-width: 0;
}
.tool-split__col .field {
    margin-bottom: 0px;
}
.tool-split__col .controls {
    margin-top: 10px;
    padding-top: 10px;
}
.tool-split__col--results .results {
    margin-top: 0;
    padding-top: 0;
}
.tool-split__col--results .results__divider {
    margin-bottom: 18px;
}
.tool-split__col--results .glossary__head {
    margin-top: 24px;
}

@media (max-width: 991px) {
    .tool-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.socials {
    gap: 8px;
    margin-top: 0px;
    display: flex;
}

.socials a {
    color: #ffffff !important;
    text-align: center;
    border: 1px solid var(--navy);
    border-radius: 50%;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    transition: all 0.3s;
    display: grid;
}
.socials a:hover {
    background: var(--gold);
    color: var(--navy) !important;
    border: 1px solid var(--navy);
    transform: translateY(-3px);
}
.socials a svg {
    fill: #ffffff !important;
}
.socials a:hover svg {
    fill: var(--navy) !important;
}
