/* Calldacity marketing pages. Website surface only (light). Tokens follow DESIGN-README.md. */
:root {
	--brand-purple: #6751a2;     /* palette5 */
	--brand-violet-light: #937ab7; /* palette4, highlight phrase */
	--brand-royal: #4361ad;      /* palette1, button fill */
	--brand-sky: #38a6de;        /* palette2 */
	--brand-charcoal: #414042;   /* palette6 */
	--brand-midnight: #070029;
	--brand-navy: #002159;
	--site-mist: #dbedf2;        /* palette7 */
	--site-ice: #ebfafc;         /* palette8 */
	--site-frost: #f2f2f2;       /* palette3 */
	--cd-line: #d9dee8;
	--focus: #4361ad;
	--radius-12: 12px;
	--radius-8: 8px;
	--radius-16: 16px;
	--shadow-card: 0 1px 3px rgba(20, 20, 60, .08);
	--shadow-hover: 0 8px 24px rgba(20, 20, 60, .12);
	--cd-max: 1180px;
	--cd-scrim: rgba(7, 0, 41, .3); /* brand-midnight scrim: keeps white text >= 4.5:1 where the gradient reaches brand-sky */
}

.cd-page { color: var(--brand-charcoal); font-size: 18px; line-height: 1.6; }
.cd-page h1, .cd-page h2, .cd-page h3, .cd-page h4 { font-family: Roboto, sans-serif; color: var(--brand-charcoal); text-transform: capitalize; margin-top: 0; }
.cd-page h1 { font-size: 48px; font-weight: 700; line-height: 1.2; }
.cd-page h2 { font-size: 36px; font-weight: 700; line-height: 1.25; }
.cd-page h3 { font-size: 22px; font-weight: 500; line-height: 1.4; }
.cd-page h4 { font-size: 18px; font-weight: 500; }
.cd-page p { margin: 0 0 1em; }
.cd-page a { color: var(--brand-royal); }
.cd-page a:hover { color: var(--brand-purple); }
.cd-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cd-page mark, .cd-page .cd-hl { background: none; color: var(--brand-violet-light); }

/* Sections */
.cd-section { padding: 88px 24px; }
.cd-section > * { max-width: var(--cd-max); margin-left: auto !important; margin-right: auto !important; }
.cd-section.cd-mist { background: var(--site-ice); }
.cd-section.cd-frost { background: var(--site-frost); }
.cd-narrow > * { max-width: 820px; }
.cd-center { text-align: center; }
.cd-eyebrow { font-family: "Open Sans", sans-serif; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase !important; color: var(--brand-purple) !important; margin-bottom: 12px !important; }
.cd-lede { font-size: 20px; max-width: 760px; }
.cd-center .cd-lede { margin-left: auto; margin-right: auto; }

/* Dark hero, only behind product imagery */
.cd-hero { background: linear-gradient(32deg, #000 57%, var(--brand-midnight) 62%, var(--brand-midnight) 68%, var(--brand-navy) 81%, var(--brand-sky) 100%); color: #fff; padding: 112px 24px 96px; }
.cd-hero h1, .cd-hero h2, .cd-hero p, .cd-hero li { color: #fff; }
.cd-hero .cd-eyebrow { color: #efe6ff !important; }
.cd-hero mark, .cd-hero .cd-hl { color: #b39ddb; }
.cd-hero .cd-lede { color: #e6e6f0; }
.cd-hero img { filter: drop-shadow(0 0 60px rgba(135, 96, 219, .45)); }
.cd-hero-small { padding: 96px 24px 72px; }

/* Signature gradient band */
.cd-band { background: linear-gradient(var(--cd-scrim), var(--cd-scrim)), linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-sky) 100%); color: #fff; }
.cd-band h2, .cd-band h3, .cd-band p { color: #fff; }

/* Buttons (website pill) */
.cd-page .wp-block-button__link { font-family: "Open Sans", sans-serif; font-size: 17px; border-radius: 999px; padding: 14px 28px; background: var(--brand-royal); color: #fff; text-transform: capitalize; transition: background .2s; }
.cd-page .wp-block-button__link:hover { background: var(--brand-purple); color: #fff; }
.cd-page .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--brand-royal) !important; border: 2px solid var(--brand-royal); }
.cd-page .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--brand-royal); color: #fff !important; }
.cd-page .cd-hero .wp-block-button.is-style-outline .wp-block-button__link, .cd-page .cd-band .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff; }
.cd-page .cd-hero .wp-block-button.is-style-outline .wp-block-button__link:hover, .cd-page .cd-band .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--brand-purple) !important; }
.cd-band .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--brand-purple); }

/* Cards */
.cd-cards { gap: 24px !important; }
.cd-card { background: #fff; border: 1px solid var(--cd-line); border-radius: var(--radius-12); padding: 28px; box-shadow: var(--shadow-card); transition: box-shadow .2s, border-color .2s; }
.cd-card:hover { box-shadow: var(--shadow-hover); border-color: var(--brand-purple); }
.cd-card h3 { margin-bottom: 8px; }
.cd-card p:last-child { margin-bottom: 0; }
.cd-card .cd-more { font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 16px; }
.cd-tag { display: inline-block; font-family: "Open Sans", sans-serif; font-size: 13px; font-weight: 600; border-radius: var(--radius-16); padding: 2px 12px; background: var(--site-mist); color: var(--brand-charcoal); margin-bottom: 12px; }
.cd-tag.cd-soon { background: #efe9fa; color: var(--brand-purple); }
.cd-tag.cd-early { background: #e3f2fb; color: #1d5f86; }

/* Checklists */
.cd-page ul.cd-checks { list-style: none; padding-left: 0; }
.cd-page ul.cd-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.cd-page ul.cd-checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-purple), var(--brand-sky)); box-shadow: inset 0 0 0 4px #fff; border: 1px solid var(--brand-purple); }
.cd-hero ul.cd-checks li::before { box-shadow: inset 0 0 0 4px #111; }

/* Stats */
.cd-stat { text-align: center; }
.cd-stat strong { display: block; font-family: Roboto, sans-serif; font-size: 44px; font-weight: 700; line-height: 1.1; }
.cd-stat span { font-size: 16px; }

/* Steps */
.cd-step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(var(--cd-scrim), var(--cd-scrim)), linear-gradient(135deg, var(--brand-purple), var(--brand-sky)); color: #fff; font-family: Roboto, sans-serif; font-weight: 700; margin-bottom: 12px; }

/* Comparison and capability tables */
.cd-table-wrap { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: var(--radius-12); overflow: hidden; box-shadow: var(--shadow-card); }
.cd-table th, .cd-table td { padding: 14px 16px; border-bottom: 1px solid var(--cd-line); text-align: left; vertical-align: top; }
.cd-table thead th { background: var(--brand-purple); color: #fff; font-family: "Open Sans", sans-serif; font-weight: 600; }
.cd-table td.cd-yes { color: #1f6f43; font-weight: 600; }
.cd-table td.cd-no { color: #6b6b70; }

/* Product screenshots */
.cd-shot img { border-radius: var(--radius-12); box-shadow: 0 20px 50px rgba(20, 20, 60, .18); border: 1px solid var(--cd-line); }
.cd-shot figcaption { font-size: 14px; color: #5b5b60; text-align: center; }
.cd-shot-placeholder { border: 2px dashed var(--brand-violet-light); border-radius: var(--radius-12); background: repeating-linear-gradient(135deg, #faf8fe, #faf8fe 12px, #f3effb 12px, #f3effb 24px); min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--brand-purple); font-family: "Open Sans", sans-serif; font-weight: 600; }

/* Flow diagram (state machine illustration) */
.cd-flow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 24px 0; }
.cd-flow .cd-node { background: #fff; border: 2px solid var(--brand-purple); border-radius: var(--radius-8); padding: 10px 16px; font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 15px; color: var(--brand-charcoal); }
.cd-flow .cd-node.cd-node-start { background: var(--brand-purple); color: #fff; }
.cd-flow .cd-node.cd-node-end { border-style: dashed; }
.cd-flow .cd-arrow { color: var(--brand-purple); font-weight: 700; }
.cd-flow .cd-node small { display: block; font-weight: 400; font-size: 12px; color: #5b5b60; }
.cd-flow .cd-node.cd-node-start small { color: #e9e3f7; }

.cd-footnote { font-size: 14px; color: #5b5b60; }

@media (max-width: 781px) {
	.cd-section { padding: 56px 16px; }
	.cd-hero { padding: 72px 16px 56px; }
	.cd-page h1 { font-size: 36px; }
	.cd-page h2 { font-size: 28px; }
	.cd-stat strong { font-size: 34px; }
}

/* Light hero for text-only page headers */
.cd-hero-light { background: linear-gradient(180deg, var(--site-ice) 0%, #fff 100%); padding: 96px 24px 64px; border-bottom: 1px solid var(--site-mist); }
.cd-hero-light h1 mark, .cd-hero-light .cd-hl { color: var(--brand-purple); }
@media (max-width: 781px) { .cd-hero-light { padding: 64px 16px 48px; } }

/* 16px side gutter for the theme's mobile header */
@media (max-width: 1024px) { #mobile-header .site-header-row-container-inner > .site-container { padding-left: 16px; padding-right: 16px; } }

/* Contrast fixes (WCAG 2.2 AA). See findings/14-contrast-audit.md */

/* Footer: white links and copyright sit on the purple-to-sky gradient and solid sky; add the midnight scrim so they stay >= 4.5:1 */
#colophon .site-middle-footer-wrap .site-footer-row-container-inner { background: linear-gradient(var(--cd-scrim), var(--cd-scrim)), linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-sky) 71%, var(--brand-sky) 99%); }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { background: linear-gradient(var(--cd-scrim), var(--cd-scrim)), var(--brand-sky); }
#colophon a:hover, #colophon a:focus-visible { text-decoration: underline; }

/* Focus: Kadence adds body.hide-focus-outline (outlines removed outside .cd-page) and otherwise leaves the browser default ring. Use the 2px / 2px-offset brand ring everywhere. */
body :focus-visible, body.hide-focus-outline :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#colophon :focus-visible, .cd-hero :focus-visible, .cd-band :focus-visible { outline-color: #fff; }

/* Mobile drawer: hovered and current links used brand-sky on the light drawer (2.4:1); the theme mod now uses brand-purple, add a non-colour cue */
.mobile-navigation a:hover, .mobile-navigation li.current-menu-item > a, .mobile-navigation li.current-menu-item > .drawer-nav-drop-wrap > a { text-decoration: underline; text-underline-offset: 4px; }

/* Gradient heading text (Kadence advanced heading on /contact-us/): the sky end was 2.7:1 on white; end the gradient on brand-royal */
.kt-adv-heading704_df19f2-23 .kb-adv-text-inner { background-image: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-royal) 100%) !important; }

/* Website chat widget (remote script, shadow DOM): white-on-sky header, Send button, user bubbles and launcher icon were 2.7:1. Theme it with brand-royal through its CSS variables. */
[data-oc-chat-widget] { --oc-primary: var(--brand-royal) !important; --oc-launcher: var(--brand-royal) !important; }

/* Integration logos: hero tiles and scrolling strip */
.cd-page ul.cd-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 460px; margin-left: auto; }
.cd-page .cd-tile { background: #fff; border-radius: var(--radius-16); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 40px rgba(135, 96, 219, .25); animation: cd-float 6s ease-in-out infinite; }
.cd-page .cd-tile:nth-child(3n+2) { animation-delay: -2s; transform: translateY(14px); }
.cd-page .cd-tile:nth-child(3n) { animation-delay: -4s; }
.cd-page .cd-tile img { max-width: 72%; max-height: 46%; object-fit: contain; }
.cd-page .cd-tile span { font: 600 12px/1.2 "Open Sans", sans-serif; color: var(--brand-charcoal); text-align: center; }
@keyframes cd-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.cd-page .cd-section.cd-logos { padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--cd-line); }
.cd-page .cd-marquee { overflow: hidden; max-width: none !important; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cd-page .cd-marquee ul { list-style: none; margin: 0; padding: 0; display: flex; }
.cd-page .cd-marquee-track { width: max-content; animation: cd-marquee 45s linear infinite; }
.cd-page .cd-marquee:hover .cd-marquee-track, .cd-page .cd-marquee:focus-within .cd-marquee-track { animation-play-state: paused; }
.cd-page .cd-marquee-group > ul { gap: 20px; padding-right: 20px; }
.cd-page .cd-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 132px; height: 96px; background: #fff; border: 1px solid var(--cd-line); border-radius: var(--radius-12); padding: 10px; }
.cd-page .cd-logo img { max-width: 96px; max-height: 40px; object-fit: contain; }
.cd-page .cd-logo span { font: 600 12px/1.2 "Open Sans", sans-serif; color: var(--brand-charcoal); text-align: center; }
@keyframes cd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.cd-page .cd-marquee-track, .cd-page .cd-tile { animation: none; }
	.cd-page .cd-marquee { mask-image: none; -webkit-mask-image: none; }
	.cd-page .cd-marquee-track { width: auto; }
	.cd-page .cd-marquee-group > ul { flex-wrap: wrap; justify-content: center; }
	.cd-page .cd-marquee-group[aria-hidden="true"] { display: none; }
}
@media (max-width: 781px) {
	.cd-page ul.cd-tiles { max-width: 340px; margin: 24px auto 0; gap: 12px; }
	.cd-page .cd-tile span { font-size: 11px; }
}

/* Brand tagline: rule + sentence-case line ("Communicate Fearlessly.") */
.cd-page p.cd-tagline { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 500 20px/1.3 Roboto, sans-serif; letter-spacing: .01em; text-transform: none; color: #a9bcf5; }
.cd-page p.cd-tagline::before { content: ""; flex: 0 0 40px; height: 2px; border-radius: 2px; background: var(--brand-sky); }
.cd-page .cd-hero-light p.cd-tagline { color: var(--brand-purple); }
@media (max-width: 781px) { .cd-page p.cd-tagline { font-size: 18px; } }
