/* Home page styles: The hero, the build steps, the bento, the catalog row and the closing band. */
.e-con.cdx-hero-text > .e-con-inner { position: relative; }

.e-con.cdx-hero-text > .e-con-inner > .elementor-element { position: relative; z-index: 1; }

/* The pixel stage: the right side of the hero's words, running to the screen's right edge at every width and
   from the very top of the page (under the floating header) down behind the product frame. Every edge that is
   not the screen's fades over a long, eased ramp (about 40% of the stage on the left and at the foot), so no
   edge can be picked out. */
.e-con.cdx-hero-text > .e-con-inner > .e-con.cdx-hero-stage {
	position: absolute;
	z-index: 0;
	top: calc(-1 * (var(--cdx-s8) + var(--cdx-head-h, 0px)));
	right: calc((100% - 100vw) / 2);
	bottom: -220px;
	width: calc(52% + (100vw - 100%) / 2);
	min-height: 0;
	--cdx-fade-x: linear-gradient(to right, transparent 0, rgba(0,0,0,.08) 10%, rgba(0,0,0,.3) 22%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.88) 44%, #000 52%);
	--cdx-fade-y: linear-gradient(to bottom, #000 0, #000 50%, rgba(0,0,0,.78) 60%, rgba(0,0,0,.45) 72%, rgba(0,0,0,.18) 85%, transparent 100%);
	-webkit-mask-image: var(--cdx-fade-x), var(--cdx-fade-y);
	-webkit-mask-composite: source-in;
	mask-image: var(--cdx-fade-x), var(--cdx-fade-y);
	mask-composite: intersect;
}

.e-con.cdx-hero-frame { position: relative; z-index: 1; }

.cdx-note-w { flex: 0 1 auto; }

.cdx-note-w .cdx-note { margin: 0; }

.cdx-statement .elementor-heading-title { max-width: 18ch; }

/* One picture height per bento row, chosen so every capture in it shows at 100% or more. */
.cdx-row-b { --cdx-media-h: 400px; }

@media (max-width: 767px) {
	.cdx-step .cdx-seq { max-height: 240px; }
	.cdx-step .cdx-seq > picture > img { object-fit: cover; object-position: left top; }
}

/* The lead card: picture left, words right, on wide screens. */
@media (min-width: 1025px) {
	.e-con.cdx-card--lead {
		--display: grid;
		display: grid !important;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: var(--cdx-s12);
		align-items: center;
	}
	.e-con.cdx-card--lead > .cdx-card-media-w { margin: calc(-1 * var(--cdx-card-pad)) 0 calc(-1 * var(--cdx-card-pad)) calc(-1 * var(--cdx-card-pad)); width: calc(100% + var(--cdx-card-pad)) !important; align-self: stretch; }
	.cdx-card--lead .cdx-card-media { height: 100%; border-bottom: 0; border-right: 1px solid var(--cdx-line); }
	.cdx-card--lead .cdx-card-media .cdx-seq { height: 100%; min-height: 360px; }
	.cdx-card--lead .cdx-card-media .cdx-seq::before { display: none; }
}

/* Phones: the last two bento cards wait behind "More it can do". */
@media (max-width: 767px) {
	.cdx-bento:not(.is-open) > .cdx-more { display: none; }
	.cdx-more-toggle .elementor-button { width: 100%; }
}

@media (min-width: 768px) {
	.cdx-more-toggle { display: none !important; }
}

/* 7e. How a build goes: the step in view is full strength, the others step back (no movement). */
.cdx-js .cdx-step { opacity: .7; transition: opacity var(--cdx-base) var(--cdx-ease); }

/* 70%: dimmed body text still about 6:1 on Surface */
.cdx-js .cdx-step.is-active { opacity: 1; }

@media (max-width: 1024px) {
	.cdx-js .cdx-step { opacity: 1; }
}

/* The last step needs no scroll room below it: its words end where the section ends (one gap after it). */
@media (min-width: 1025px) {
	.e-con.cdx-step:last-child { --min-height: 0px; min-height: 0; justify-content: flex-start; }
}

.cdx-step-no { font-variant-numeric: tabular-nums; }

.cdx-feed-row .post-feed-grid > * > .elementor, .cdx-feed-row .post-feed-grid > * > .elementor > .e-con { height: 100%; }

/* The catalog row (server-rendered from the catalog, [cdx_catalog_row]): 4 across, 2 on tablets. */
.cdx-catalog-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cdx-s6); }

.cdx-catalog-item, .cdx-catalog-item > .elementor, .cdx-catalog-item > .elementor > .e-con { height: 100%; }

@media (max-width: 1024px) {
	.cdx-catalog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.cdx-catalog-row {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: var(--cdx-s4);
		padding-bottom: var(--cdx-s2);
	}
	.cdx-catalog-row > .cdx-catalog-item { flex: 0 0 82%; scroll-snap-align: start; }
}

/* On phones the catalog row scrolls sideways with snap points. */
@media (max-width: 767px) {
	.cdx-feed-row .post-feed-grid {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: var(--cdx-s4);
		padding-bottom: var(--cdx-s2);
	}
	.cdx-feed-row .post-feed-grid > .ts-preview { flex: 0 0 82%; scroll-snap-align: start; }
}

.e-con.cdx-closing + .e-con.cdx-footer { margin-top: 0; }

.e-con.cdx-closing > .cpp-glow { bottom: 0; }

.cdx-step-no { margin: 0; }

/* The hero frame: the full content width (1200), the header's edges on both sides. Its Lab captures are
   960 CSS px wide, shown at 123%. */
/* A frame caption with a Bracey: Bracey thinks while the build plays and is done, with sparkles, at the end. */
.cdx-frame figcaption.cdx-cap-rich {
	display: flex;
	align-items: center;
	gap: var(--cdx-s3);
	margin: var(--cdx-s2) var(--cdx-s2) 0;
}

.cdx-cap { flex: 1 1 auto; min-width: 0; }

.cdx-mini-bracey { flex: none; display: inline-grid; width: 64px; height: 64px; }

.cdx-mini-bracey > svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity var(--cdx-base) var(--cdx-ease); }

.cdx-mini-bracey > .is-thinking { opacity: 0; }

.cdx-mini-bracey[data-state="thinking"] > .is-thinking { opacity: 1; }

.cdx-mini-bracey[data-state="thinking"] > .is-done { opacity: 0; }

@media (max-width: 767px) {
	.cdx-mini-bracey { width: 48px; height: 48px; }
	.cdx-frame figcaption.cdx-cap-rich { margin: var(--cdx-s2) var(--cdx-s3) var(--cdx-s3); }
}

@media (prefers-reduced-motion: no-preference) {
	.cdx-mini-bracey.is-alive[data-state="thinking"] .a-type { animation: cdx-mini-type 1.2s ease-in-out infinite; }
	.cdx-mini-bracey.is-alive[data-state="thinking"] .a-type2 { animation-delay: .2s; }
	.cdx-mini-bracey.is-alive[data-state="thinking"] .a-type3 { animation-delay: .4s; }
	.cdx-mini-bracey[data-state="done"] .mini-spark { transform-box: fill-box; transform-origin: center; animation: cdx-mini-spark 900ms var(--cdx-ease) 1 both; }
	.cdx-mini-bracey[data-state="done"] .mini-spark-2 { animation-delay: 150ms; }
}

@keyframes cdx-mini-type { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }

@keyframes cdx-mini-spark {
	0%   { opacity: 0; transform: scale(.3) rotate(-40deg); }
	60%  { opacity: 1; transform: scale(1.2) rotate(0); }
	100% { opacity: 1; transform: none; }
}

/* The closing band: the words sit above the pixels, and the pixels keep out of the words' column (they
   live on Bracey's side on wide screens, and below the words on phones). */
.e-con.cdx-closing > .e-con-inner { position: relative; z-index: 1; }

.e-con.cdx-closing .cpp-layer {
	-webkit-mask-image: linear-gradient(to right, transparent 0, transparent 48%, #000 72%), linear-gradient(to bottom, transparent 0, #000 var(--cdx-blend), #000 calc(100% - var(--cdx-blend) * .6), transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, transparent 48%, #000 72%), linear-gradient(to bottom, transparent 0, #000 var(--cdx-blend), #000 calc(100% - var(--cdx-blend) * .6), transparent 100%);
	mask-composite: intersect;
}

@media (max-width: 1024px) {
	.e-con.cdx-closing .cpp-layer {
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 52%, #000 75%, #000 88%, transparent 100%);
		-webkit-mask-composite: source-over;
		mask-image: linear-gradient(to bottom, transparent 0, transparent 52%, #000 75%, #000 88%, transparent 100%);
		mask-composite: add;
	}
}

/* Bento rows (round 2b): design and manage share a 240px row; tasks is a compact strip, picture left. */
.cdx-row-a { --cdx-media-h: 240px; }

@media (min-width: 768px) {
	.e-con.cdx-card--strip {
		--cdx-media-h: 180px;
		--display: grid;
		display: grid !important;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-rows: auto auto;
		column-gap: var(--cdx-s8);
		row-gap: var(--cdx-s2);
		align-content: center;
	}
	.e-con.cdx-card--strip > .cdx-card-media-w {
		grid-row: 1 / span 2;
		margin: calc(-1 * var(--cdx-card-pad)) 0 calc(-1 * var(--cdx-card-pad)) calc(-1 * var(--cdx-card-pad));
		width: calc(100% + var(--cdx-card-pad)) !important;
		align-self: stretch;
	}
	.cdx-card--strip .cdx-card-media { height: 100%; border-bottom: 0; border-right: 1px solid var(--cdx-line); }
	.cdx-card--strip .cdx-card-media .cdx-seq { height: 100%; min-height: var(--cdx-media-h); }
	.e-con.cdx-card--strip > .cdx-card-title { align-self: end; }
	.e-con.cdx-card--strip > .elementor-widget-text-editor { align-self: start; }
}

/* A picture cut by its box (a crop that stops above words we may not show, a phone picture capped at
   240px) fades out over its last 32px instead of ending on half a line. */
.cdx-card--strip .cdx-seq > picture > img {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}

@media (max-width: 767px) {
	.cdx-step .cdx-seq > picture > img {
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
	}
}

/* How a build goes, on phones: a sideways list of step cards, one per swipe, the next one peeking in. */
.cdx-step-dots { display: none; }

@media (max-width: 767px) {
	.e-con.cdx-steps-list {
		--flex-direction: row;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: var(--cdx-s3);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--cdx-gutter);
		margin-inline: calc(-1 * var(--cdx-gutter));
		padding-inline: var(--cdx-gutter);
		width: calc(100% + 2 * var(--cdx-gutter)) !important;
		max-width: none !important;
		scrollbar-width: none;
	}
	.e-con.cdx-steps-list::-webkit-scrollbar { display: none; }
	.e-con.cdx-steps-list > .e-con.cdx-step {
		--cdx-card-pad: var(--cdx-s5);
		flex: 0 0 min(330px, calc(100vw - 2 * var(--cdx-gutter) - 12px)) !important;
		min-height: 0 !important;
		justify-content: flex-start;
		scroll-snap-align: start;
		--padding-top: 0; --padding-bottom: var(--cdx-card-pad);
		--padding-left: var(--cdx-card-pad); --padding-right: var(--cdx-card-pad);
		background: var(--cdx-surface);
		border: 1px solid var(--cdx-line);
		border-radius: var(--cdx-r-card);
		overflow: clip;
	}
/* The picture leads each card, flush to its edges, so every card's picture starts at the same line. */
	.e-con.cdx-step > .elementor-widget-html:last-child { order: -1; margin: 0 calc(-1 * var(--cdx-card-pad)) var(--cdx-s2); width: calc(100% + 2 * var(--cdx-card-pad)) !important; max-width: none; }
	.cdx-step .cdx-frame { border: 0; border-bottom: 1px solid var(--cdx-line); border-radius: 0; background: none; }
	.cdx-step .cdx-frame .cdx-seq { border-radius: 0; }
/* The phone captures are 330-334px wide: never shown smaller (their 11px text stays 11px); a narrower card
	   crops them at the right instead. */
	.cdx-step .cdx-seq > picture > img { width: max(100%, 334px); max-width: none; }/* focus ring: see focus.css */
	.cdx-step-dots {
		display: flex;
		justify-content: center;
		gap: 0;
		height: 44px;
		margin: 0;
	}
	.cdx-step-dots button {
		width: 44px; height: 44px;
		padding: 0;
		border: 0;
		background: none;
		display: grid;
		place-items: center;
		cursor: pointer;
	}
	.cdx-step-dots button::before {
		content: "";
		width: 8px; height: 8px;
		border-radius: 50%;
		background: var(--cdx-line-strong);
		transition: background var(--cdx-fast) var(--cdx-ease), transform var(--cdx-fast) var(--cdx-ease);
	}
	.cdx-step-dots button[aria-current="step"]::before { background: var(--cdx-primary); transform: scale(1.25); }
}

/* The Hub section's "Try it" switch under its screenshot. */
.cdx-hub-try { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cdx-s3); margin: var(--cdx-s4) 0 0; }

/* The closing band's info notice sits a little below the button. */
.cdx-closing .cdx-notice { margin-top: var(--cdx-s2); }

/* The hero: on wide screens the words sit left and the live Lab right, over the pixel stage; below 1200px
   they stack, the Lab under the buttons. The words centre on the Lab's height (the 1fr rows above and
   below them take what the Lab adds). */
.cdx-hero-assure p { margin: 0; }

.e-con-inner > .cdx-hero-assure { margin-top: calc(-1 * var(--cdx-s3)); }

/* Stacked, the live Lab is as wide as its own column (no empty margins inside the box). */
.e-con.cdx-hero-text > .e-con-inner > .elementor-widget.cdx-hero-demo { position: relative; z-index: 1; width: 100%; max-width: 820px; }

@media (min-width: 1200px) {
	.e-con.cdx-hero-text > .e-con-inner {
		display: grid !important;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		grid-template-rows: 1fr repeat(5, auto) 1fr;
		column-gap: var(--cdx-s12);
		row-gap: var(--cdx-s6);
	}
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element { grid-column: 1; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element:nth-child(1) { grid-row: 2; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element:nth-child(2) { grid-row: 3; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element:nth-child(3) { grid-row: 4; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element:nth-child(4) { grid-row: 5; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-element:nth-child(5) { grid-row: 6; }
	.e-con.cdx-hero-text > .e-con-inner > .elementor-widget.cdx-hero-demo { grid-column: 2; grid-row: 1 / 8; align-self: center; max-width: none; }
}

/* The build steps' live Lab views. */
.cdx-steps-demo, .cdx-step-demo { width: 100%; }

.elementor .e-con.cdx-step > .elementor-widget.cdx-step-demo { max-width: 820px; }

/* Phones: a step card is one box. Its live Lab view runs flush to the card's sides and foot (a line above
   it, the card's own corners below), not a second box inside the card. */
@media (max-width: 767px) {
	.elementor .e-con.cdx-step > .elementor-widget.cdx-step-demo {
		margin: auto calc(-1 * var(--cdx-card-pad)) calc(-1 * var(--padding-bottom, var(--cdx-card-pad)));
		width: calc(100% + 2 * var(--cdx-card-pad)) !important;
		max-width: none;
	}
	.cdx-step .cdx-lab-demo {
		border: 0;
		border-top: 1px solid var(--cdx-line);
		border-radius: 0;
		box-shadow: none;
		background: var(--cdx-bg);
	}
}

/* Phones: one button on the first screen. "See the Lab work" is a text link under it. */
@media (max-width: 767px) {
	#top .cdx-btn-row .cdx-btn-secondary { width: auto !important; }
	#top .cdx-btn-row .cdx-btn-secondary .elementor-button:not(#cdx) {
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
		color: var(--cdx-link) !important;
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 3px;
	}
	#top .cdx-btn-row .cdx-btn-secondary .elementor-button:not(#cdx):hover { color: var(--cdx-text) !important; background: none !important; }
}

/* Bento media (2d): one height per row. A capture shows whole (contained, on the page dark, never cut); a live
   Lab view sits in the middle of the same height. Phones: natural heights, one card a row. */
.cdx-row-a { --cdx-media-h: 300px; }

.cdx-row-b { --cdx-media-h: 360px; }

@media (min-width: 768px) {
	.cdx-bento .cdx-card:not(.cdx-card--lead):not(.cdx-card--strip) .cdx-card-media { height: var(--cdx-media-h); background: var(--cdx-bg); }
	.cdx-bento .cdx-card:not(.cdx-card--lead):not(.cdx-card--strip) .cdx-card-media .cdx-seq { height: 100%; }
	.cdx-bento .cdx-card-media--live { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
}

.cdx-bento .cdx-card-media .cdx-seq > picture > img { object-fit: contain; object-position: center; padding: var(--cdx-s4); box-sizing: border-box; }

@media (max-width: 767px) {
	.cdx-bento .cdx-card-media .cdx-seq { max-height: none; }
}

/* The Hub card shot: centred at its own size, its widget as wide as the column (a shrink-to-fit parent gave
   the box no width). */
.e-con.cdx-hub-shot > .elementor-widget { width: 100%; }

.cdx-hub-shot .cdx-hub-try { width: min(100%, 372px); justify-content: center; }

/* The Hub figure column: as wide as the card at its own size, so the card fills it. */
.cdx-hub-left .cdx-shot--card { width: min(100%, 372px); }

/* Live views that fill a card side (the lead card, the tasks strip): the page dark fills round them. */
.cdx-card-media--live { background: var(--cdx-bg); }

.cdx-card--lead .cdx-card-media--live, .cdx-card--strip .cdx-card-media--live { display: flex; flex-direction: column; justify-content: center; }


/* The hero headline is the Lab's new-chat greeting (codicts-lab.css .cl-hello): the hook in the Hub's gradient,
   drifting end to end (6s, alternate), weight 800, tight tracking, rising in on load (transform only, so the
   headline paints at once). The padding and matching negative margins widen the painted box so the gradient
   never clips a descender. Line 2 is typed by the Lab's typewriter: quiet (the greeting's subline: smaller,
   600, Subtle) or white (Heading colour, display size); the class on the H1 picks one. Contrast: the gradient's
   darkest stop (#D00000) is 3.1:1 on the hero's dark, 3.2:1 on Deep: large text, AA. */
/* The design site's type for the hero H1 (its Hero headline widget, cdx-sh-title is-cdxdisplay: 1.05, -0.025em), restored 2026-12-01. */
.elementor .cdx-hero-h1 .elementor-heading-title { line-height: 1.05; letter-spacing: -.025em; }

.cdx-hero-h1 .cdx-hello {
	display: inline-block;
	padding: .1em .12em .18em;
	margin: -.1em -.12em -.18em;
	background: var(--cdx-ring);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: 800;
	animation: codicts-btn-gradient 6s ease alternate infinite;
}

.cdx-motion .elementor .cdx-hero-h1 .elementor-heading-title { animation: cdx-hello-rise .7s var(--cdx-ease) both; }

@keyframes cdx-hello-rise { from { transform: translateY(10px); } to { transform: none; } }

.cdx-hero-h1--quiet .cdx-type { margin-top: .25em; font-size: .56em; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--cdx-subtle); }

.cdx-hero-h1--white .cdx-type { color: var(--cdx-heading); }

@media (prefers-reduced-motion: reduce) {
	.cdx-hero-h1 .cdx-hello { animation: none; background-position: 50% 50%; }
}

/* The lead card's live view: its half of the card, edge to edge and top to bottom (stretched, not capped at the
   card's inner height), the build card centred in the page dark. */
@media (min-width: 1025px) {
	.e-con.cdx-card--lead > .cdx-card-media-w.cdx-card-media--live { height: auto; align-self: stretch; }
}

/* Inside the Lab: rows alternate on wide screens; on phones the words always come before the scene. */
@media (max-width: 767px) {
	.cdx-inside-row--rev > .e-con-inner > .cdx-inside-words, .cdx-inside-row--rev > .cdx-inside-words { order: -1; }
}

/* The bento's scenes share one ground: the page dark with a faint dot grid and a soft pink light at the top left
   (static background, painted once). */
.cdx-bento .cdx-card-media.cdx-card-media--live,
.cdx-bento .cdx-card-media.cdx-pins,
.cdx-bento .cdx-card-media.cdx-chart,
.cdx-bento .cdx-card-media.cdx-taskrun,
.cdx-bento .cdx-card-media-w.cdx-card-media--live {
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(255, 23, 107, .07), transparent 55%),
		radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px) 0 0 / 18px 18px,
		var(--cdx-bg);
}

/* ---- Polish round 2026-11-20 ---- */

/* A heading with its link at the row's end (Lab tools, Add-ons, Good to know). */
.e-con.cdx-row-head > .cdx-auto { flex: 1 1 520px; }

.cdx-row-link p { margin: 0; }

/* The Hub's arrow icon (2026-11-24), in a 1em box from the first paint. */
.cdx-link--arrow::after { content: ""; -webkit-mask: var(--cdx-mi-arrow_forward) center / contain no-repeat; mask: var(--cdx-mi-arrow_forward) center / contain no-repeat; background-color: currentColor; display: inline-block; width: 1em; height: 1em; margin-left: .3em; overflow: hidden; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; vertical-align: -.15em; transition: transform var(--cdx-fast) var(--cdx-ease); }

.cdx-link--arrow:hover::after { transform: translateX(3px); }

/* The Hub's features: two columns of tinted icon tiles (the Hub's tile recipe), the download under them. */
.cdx-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }

.cdx-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--cdx-line); border-radius: var(--cdx-r-item); background: color-mix(in srgb, var(--cdx-surface) 70%, transparent); }

.cdx-feat-ic { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); color: color-mix(in srgb, var(--tone) 72%, #fff); }

.cdx-feat-ic .cdx-icon { font-size: 21px; }

.cdx-feats strong { display: block; margin: 1px 0 3px; color: var(--cdx-heading); font-size: 1rem; font-weight: 600; line-height: 1.35; }

.cdx-feats li > span:last-child > span { display: block; color: var(--cdx-subtle); font-size: .9375rem; line-height: 1.5; }

.cdx-hub-right .cdx-cta-row { margin-top: 12px; }

@media (max-width: 760px) {
	.cdx-feats { grid-template-columns: minmax(0, 1fr); }
}

/* Bracey in a section: a picture with its own small motion, floating gently (still with reduced motion). */
.cdx-bracey-pic { display: block; max-width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }

@media (prefers-reduced-motion: no-preference) {
	.cdx-bracey-float { animation: cdx-bracey-bob 5.5s ease-in-out infinite; }
}

@keyframes cdx-bracey-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.cdx-bracey-spot--market { margin-top: 4px; }

.cdx-bracey-spot--market .cdx-bracey-pic { width: 112px; height: 112px; }

.cdx-bracey-spot--know { flex: none; align-self: center; width: 92px; }

/* Custom development: one band card, Bracey thinking it over, the words, then Talk to us. */
.e-con.cdx-band {
	--display: grid; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 40px;
	padding: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 48px);
	border: 1px solid var(--cdx-line); border-radius: 20px;
	background:
		radial-gradient(120% 140% at 0% 50%, rgba(255, 23, 107, .10), transparent 55%),
		radial-gradient(90% 120% at 100% 100%, rgba(255, 154, 46, .07), transparent 60%),
		var(--cdx-surface);
}

.cdx-band-bracey { width: 116px; }

.e-con.cdx-band-action { align-self: center; }

@media (max-width: 900px) {
	.e-con.cdx-band { grid-template-columns: auto minmax(0, 1fr); }
	.e-con.cdx-band-action { grid-column: 2; }
	.cdx-band-bracey { width: 104px; align-self: start; }
}

@media (max-width: 600px) {
	.e-con.cdx-band { grid-template-columns: minmax(0, 1fr); text-align: left; }
	.e-con.cdx-band-action { grid-column: auto; }
	.cdx-band-bracey { width: 96px; }
}

/* Good to know: six even tiles, three across (two on tablets, one on phones), each icon in its own tone. */
.e-con.cdx-tiles { --display: grid; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

.e-con.cdx-tile { height: 100%; padding: 24px; border: 1px solid var(--cdx-line); border-radius: var(--cdx-r-card); background: var(--cdx-surface); transition: border-color .2s ease, transform .25s var(--cdx-ease); }

.e-con.cdx-tile:hover { border-color: color-mix(in srgb, var(--cdx-text) 18%, transparent); }

.cdx-tile .cdx-know-icon { margin-bottom: 6px; }

.cdx-tile .elementor-widget-text-editor p { margin: 0; color: var(--cdx-subtle); }

@media (max-width: 1024px) {
	.e-con.cdx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.e-con.cdx-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.cdx-bracey-spot--know { display: none; }
}

/* ---- Phones, a shorter home page (2026-11-23): rows of cards you swipe, two columns where words are short ---- */
@media (max-width: 767px) {
	/* The bento (all six cards, so no "More it can do") and Inside the Lab's three rows: one row you swipe,
	   each card 86% wide and snapping to the gutter, the next one peeking in. */
	.e-con.cdx-grid.cdx-bento, .e-con.cdx-inside-rows {
		--display: flex;
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: stretch;
		gap: 14px !important;
		margin-inline: calc(-1 * var(--cdx-gutter));
		/* as wide as the screen: the negative margins alone moved the row to the left edge but kept the column's width, so it ended a
		   gutter short on the right and cut the next card early (2026-12-01, the owner: "this section on mobile gets pre-emptively cut") */
		width: calc(100% + 2 * var(--cdx-gutter)) !important; max-width: none !important;
		padding: 4px var(--cdx-gutter) 14px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--cdx-gutter);
		scrollbar-width: none;
	}
	.e-con.cdx-grid.cdx-bento::-webkit-scrollbar, .e-con.cdx-inside-rows::-webkit-scrollbar { display: none; }
	.e-con.cdx-grid.cdx-bento > .e-con, .e-con.cdx-inside-rows > .e-con { flex: 0 0 86% !important; max-width: 86%; scroll-snap-align: start; }
	.cdx-bento:not(.is-open) > .cdx-more { display: flex; }
	.cdx-more-toggle { display: none !important; }
	/* Inside the Lab's rows read as cards in the row. */
	.e-con.cdx-inside-rows > .e-con.cdx-inside-row { align-content: start; padding: 20px; border: 1px solid var(--cdx-line); border-radius: var(--cdx-r-card); background: var(--cdx-surface); }
	.cdx-inside-row .cdx-inside-note { display: none; }
	/* The Toolkit in its card: one tool line per add-on. */
	.cdx-inside-row .cdx-tk-tools li:nth-child(n + 2) { display: none; }
	/* The Hub's six facts: one row of compact tiles you swipe (two columns still wrapped each line to 4-5 rows). */
	.cdx-feats { display: flex; gap: 10px; margin-inline: calc(-1 * var(--cdx-gutter)); padding: 0 var(--cdx-gutter) 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cdx-gutter); scrollbar-width: none; }
	.cdx-feats::-webkit-scrollbar { display: none; }
	.cdx-feats li { flex: 0 0 66%; flex-direction: column; gap: 10px; padding: 16px; scroll-snap-align: start; }
	.cdx-feat-ic { width: 34px; height: 34px; }
	.cdx-feats strong { font-size: .9375rem; }
	.cdx-feats li > span:last-child > span { font-size: .875rem; line-height: 1.45; }
	.cdx-bracey-spot--market .cdx-bracey-pic { width: 96px; height: 96px; }
	/* The download right after the bento's own is one too many on a phone. */
	#how-it-builds .cdx-cta-row { display: none; }
}

/* Good to know on phones: a 2-column grid of compact tiles. */
@media (max-width: 600px) {
	.e-con.cdx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.e-con.cdx-tile { padding: 16px; gap: 6px; }
	.cdx-tile .cdx-know-icon { width: 36px; height: 36px; margin: 0 0 4px; }
	.cdx-tile .elementor-heading-title { font-size: 1rem; line-height: 1.3; }
	.cdx-tile .elementor-widget-text-editor p { font-size: .875rem; line-height: 1.45; }
}

/* The Lab's tabs (the shorter home mock, 2026-11-24): Elementor's own nested tabs in the Hub's tab look (tabs.css
   .cdx-tabs), weighted over the kit's button styles; one row's scene at a time. */
.cdx-lab-tabs .e-n-tabs-heading { display: inline-flex; flex-wrap: wrap; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 32px; padding: 6px 8px; background: var(--cdx-surface); border: 1px solid var(--cdx-line); border-radius: 24px; }

body .cdx-lab-tabs button.e-n-tab-title { display: inline-flex; align-items: center; min-height: 44px; width: auto; margin: 0; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: none; box-shadow: none; transform: none; color: var(--cdx-subtle); font-family: var(--cdx-font-body); font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; cursor: pointer; }

body .cdx-lab-tabs button.e-n-tab-title:hover, body .cdx-lab-tabs button.e-n-tab-title:focus-visible { color: var(--cdx-text); background: rgba(255, 255, 255, .06); }

body .cdx-lab-tabs button.e-n-tab-title[aria-selected="true"] { color: var(--cdx-heading); background: rgba(255, 255, 255, .1); border-color: var(--cdx-line); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-weight: 600; }

.cdx-lab-tabs .e-n-tab-title-text { color: inherit; font: inherit; }

.cdx-lab-tabs .e-n-tabs-content > .e-con { padding: 0; border: 0; }

/* One height for every Lab tab on wide screens (the tallest, Memory), so opening a shorter one never moves the page
   below it; each panel's row sits in the middle. Phones and tablets stack text over scene, at their own height. */
@media (min-width: 1025px) {
	.cdx-lab-tabs .e-n-tabs-content > .e-con { min-height: 745px; justify-content: center; }
}

/* Elementor colours its tabs through its own variables (set per widget from the kit); the Hub's tab colours go
   into those variables on this widget. */
body .elementor .elementor-element.cdx-lab-tabs.elementor-widget-n-tabs { --n-tabs-title-background-color: transparent; --n-tabs-title-background-color-hover: rgba(255, 255, 255, .06); --n-tabs-title-background-color-active: rgba(255, 255, 255, .1); --n-tabs-title-color: var(--cdx-subtle); --n-tabs-title-color-hover: var(--cdx-text); --n-tabs-title-color-active: #fff; --n-tabs-title-transition: .15s; --n-tabs-heading-justify-content: flex-start; }

/* Phones: the four tabs as an even two by two (a long label on two lines), not three ragged rows. */
@media (max-width: 767px) {
	.cdx-lab-tabs .e-n-tabs-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 100%; border-radius: 28px; }
	body .cdx-lab-tabs button.e-n-tab-title { align-self: stretch; height: auto; justify-content: center; padding: 6px 12px; border-radius: 22px; white-space: normal; text-align: center; }
	.cdx-lab-tabs .e-n-tab-title-text { justify-content: center; text-align: center; }
}

/* Native fact list (step 80): the list is a container (.cdx-feats), each fact a container (.cdx-feat) with a tile (Heading .cdx-feat-ic) and the words (.cdx-feat-title, .cdx-feat-text). Same look as the old list. */
.e-con.cdx-feats { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; width: 100%; }
.e-con.cdx-feats > .e-con.cdx-feat { --padding-top: 16px; --padding-right: 16px; --padding-bottom: 16px; --padding-left: 16px; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 14px; align-items: flex-start; width: auto; max-width: none; border: 1px solid var(--cdx-line); border-radius: var(--cdx-r-item); background: color-mix(in srgb, var(--cdx-surface) 70%, transparent); }
.elementor-widget.cdx-feat-ic { width: 40px !important; height: 40px; margin: 0 !important; flex: none; }
.elementor-widget.cdx-feat-ic > .elementor-widget-container, .elementor-widget.cdx-feat-ic .elementor-heading-title { display: contents; }
.elementor-widget.cdx-feat-ic .elementor-heading-title .cdx-icon { margin: 0; line-height: 1; }
.cdx-feat .cdx-feat-words { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; display: block; flex: 1 1 auto; min-width: 0; width: auto; }
.cdx-feat .cdx-feat-words > .e-con-inner { display: block; }
.cdx-feat-title, .cdx-feat-title .elementor-heading-title { display: block; margin: 1px 0 3px !important; color: var(--cdx-heading); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.cdx-feat-text, .cdx-feat-text p { display: block; margin: 0; color: var(--cdx-subtle); font-size: .9375rem; line-height: 1.5; }
/* Phones and small tablets (2026-12-01, the owner: "stack it instead of scroll, stacked in 2 columns"; it was one row you swiped below
   600px, one column above): two columns, each fact's tile above its words. */
@media (max-width: 760px) {
	html body .e-con.cdx-feats:not(#cdx-u) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; } /* the old list's swipe padding (.cdx-feats, 767px) does not apply */
	.e-con.cdx-feats > .e-con.cdx-feat { --padding-top: 14px; --padding-right: 14px; --padding-bottom: 14px; --padding-left: 14px; flex-direction: column; gap: 10px; max-width: none; }
	.elementor-widget.cdx-feat-ic { width: 34px !important; height: 34px; }
	.cdx-feat-title, .cdx-feat-title .elementor-heading-title { font-size: .9375rem; }
	.cdx-feat-text, .cdx-feat-text p { font-size: .875rem; line-height: 1.45; }
}
