/*
 * Calorie Calculator Cloud 2026: tokens, base, the sky band, header, footer and shared pieces.
 * Page styles live in parts/<page>.css and load only on that page.
 *
 * House rule: an element with a border-radius gets a border or ring on all four sides or on none (no one-sided
 * borders, no inset side stripes). Selected and active states use a fill, a text color, a dot or a full ring.
 */

:root {
	--ink: #1D293F;
	--ink-2: #46506E;
	--ink-3: #6B7190;
	--accent: #4B2DC5;
	--accent-hover: #35199E;
	--accent-shadow: rgba(75, 45, 197, 0.6);
	--accent-light: #CDC4EF;
	--accent-tint: #ECE6FF;
	--violet: #5B3BDB;
	--bg: #F7F5FF;
	--card: #FFFFFF;
	--line: rgba(29, 41, 63, 0.12);
	--night: #17143B;
	--night-ink: #CFCBEA;
	--sky: linear-gradient(180deg, #CCD6FF 0%, #DAD5FF 36%, #EBE3FF 68%, #F7F5FF 100%);
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	--header-h: 96px;
	--gutter: clamp(20px, 5cqi, 48px);
	--shadow-card: 0 0 0 1px rgba(29, 41, 63, 0.06), 0 24px 48px -32px rgba(38, 32, 70, 0.35);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body.ccc26 {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.page {
	container: page / inline-size;
	position: relative;
	overflow-x: clip;
	background: var(--bg);
}

.ccc26 h1,
.ccc26 h2,
.ccc26 h3,
.ccc26 .serif {
	font-family: var(--serif);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	color: var(--ink);
	text-wrap: balance;
}

.ccc26 h1,
.ccc26 h2,
.ccc26 h3,
.ccc26 h4,
.ccc26 p,
.ccc26 figure,
.ccc26 blockquote {
	margin: 0;
}

.ccc26 p {
	text-wrap: pretty;
}

.ccc26 img,
.ccc26 svg {
	max-width: 100%;
}

.ccc26 img {
	height: auto;
}

:where(.ccc26) a {
	color: var(--accent);
}

:where(.ccc26) a:hover {
	color: var(--accent-hover);
}

.ccc26 a:focus-visible,
.ccc26 button:focus-visible,
.ccc26 input:focus-visible,
.ccc26 select:focus-visible,
.ccc26 textarea:focus-visible,
.ccc26 summary:focus-visible {
	outline: 3px solid rgba(75, 45, 197, 0.45);
	outline-offset: 2px;
}

.ccc26 button {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	z-index: 100;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ink);
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
	color: #FFFFFF;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Layout and type helpers
 * ------------------------------------------------------------------------------------------------------------- */

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.wrap--wide {
	max-width: 1440px;
}

.band {
	padding: clamp(64px, 9cqi, 120px) 0;
}

.h1 {
	font-size: clamp(42px, 5.4cqi, 76px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.h1 em,
.h2 em {
	display: block;
	font-style: italic;
	font-weight: 500;
	color: var(--accent);
}

.h2 {
	font-size: clamp(34px, 3.8cqi, 54px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.h3 {
	font-size: clamp(22px, 2cqi, 28px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-2);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
}

.muted {
	color: var(--ink-3);
}

.small-note {
	font-size: 14px;
	color: var(--ink-3);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------------------------------------------- */

.btn-p,
.btn-s,
.btn-d {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.btn-p {
	background: var(--accent);
	box-shadow: 0 16px 30px -14px var(--accent-shadow);
	color: #FFFFFF;
}

.btn-s {
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.12);
	color: var(--ink);
	font-weight: 600;
}

.btn-d {
	background: var(--ink);
	color: #FFFFFF;
}

.btn-p:hover,
.btn-d:hover {
	color: #FFFFFF;
	filter: brightness(1.08);
}

.btn-s:hover {
	color: var(--ink);
	background: #FFFFFF;
}

.btn-p:active,
.btn-s:active,
.btn-d:active {
	transform: translateY(1px);
}

.btn-p[aria-disabled='true'],
.btn-s[aria-disabled='true'] {
	opacity: 0.55;
	pointer-events: none;
	box-shadow: none;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------------------------------------------------------------------
 * The sky band every page opens with. The header lies over it, so its content starts below --header-h.
 * ------------------------------------------------------------------------------------------------------------- */

.sky {
	position: relative;
	overflow: hidden;
	background: var(--sky);
}

.sky__grain {
	position: absolute;
	inset: 0;
	opacity: 0.55;
	pointer-events: none;
	background-image: url(../img/grain.png);
	background-size: 220px 220px;
}

.sky__clouds {
	position: absolute;
	z-index: 1;
	left: 0;
	bottom: 0;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.sky__inner {
	position: relative;
	z-index: 2;
	max-width: 1440px;
	margin: 0 auto;
	padding: calc(var(--header-h) + clamp(24px, 4cqi, 56px)) clamp(20px, 4cqi, 56px) clamp(90px, 11cqi, 160px);
}

/* A .wrap inside brings its own side padding: keep the hero on the same left edge as the bands below. */
.sky__inner:has(> .wrap) {
	padding-left: 0;
	padding-right: 0;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Site header
 * ------------------------------------------------------------------------------------------------------------- */

.site-header {
	position: absolute;
	z-index: 20;
	top: 0;
	left: 0;
	right: 0;
	max-width: 1440px;
	margin: 0 auto;
	padding: 22px clamp(20px, 4cqi, 56px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--ink);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand__mark {
	flex-shrink: 0;
}

.brand__name {
	font-family: var(--serif);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	font-size: 21px;
	font-weight: 650;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.brand__tag {
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--ink);
	color: #F7F5FF;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.nav-pill {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 28px -14px rgba(38, 32, 70, 0.3);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.nav-pill a {
	padding: 10px 16px;
	border-radius: 999px;
	color: #26304D;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 150ms ease;
}

.nav-pill a:hover {
	color: #26304D;
	background: rgba(255, 255, 255, 0.7);
}

.nav-pill a[aria-current='page'] {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 2px rgba(38, 32, 70, 0.1), 0 6px 14px -8px rgba(38, 32, 70, 0.3);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-account,
.header-cta {
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.header-account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
	color: #26304D;
}

.header-account .icon {
	display: none;
}

.header-account:hover {
	color: #26304D;
	background: rgba(255, 255, 255, 0.85);
}

.header-cta {
	background: var(--accent);
	box-shadow: 0 10px 20px -10px var(--accent-shadow);
	color: #FFFFFF;
	font-weight: 700;
}

.header-cta:hover {
	color: #FFFFFF;
	filter: brightness(1.08);
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: var(--ink);
	cursor: pointer;
}

.mobile-nav {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 0 0 1px rgba(38, 32, 70, 0.06), 0 20px 40px -20px rgba(38, 32, 70, 0.35);
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav a {
	padding: 14px 16px;
	border-radius: 14px;
	color: var(--ink);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] {
	color: var(--ink);
	background: var(--accent-tint);
}

.mobile-nav .mobile-nav__cta {
	margin-top: 6px;
	background: var(--accent);
	color: #FFFFFF;
	text-align: center;
	font-weight: 700;
}

.mobile-nav .mobile-nav__cta:hover {
	background: var(--accent-hover);
	color: #FFFFFF;
}

/* Small laptops and tablets in landscape: the account link turns into an icon to keep the bar on one row. */
@container page (max-width: 1160px) {
	.brand__tag {
		display: none;
	}

	.nav-pill a {
		padding: 10px 12px;
	}

	.header-account {
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
	}

	.header-account .icon {
		display: block;
	}

	.header-account__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@container page (max-width: 960px) {
	.nav-pill,
	.header-account {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.brand__name {
		font-size: 19px;
	}
}

/* Phones: the bar stays one row (logo, trial button, menu); the mobile menu repeats the trial button. */
@container page (max-width: 520px) {
	.site-header {
		gap: 10px;
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.brand {
		gap: 9px;
	}

	.brand__mark {
		width: 36px;
		height: 36px;
	}

	.brand__name {
		font-size: 17px;
	}

	.brand__tag {
		display: none;
	}

	.header-actions {
		gap: 6px;
	}

	.header-cta {
		padding: 9px 14px;
		font-size: 14px;
	}
}

@container page (max-width: 370px) {
	.brand__name {
		display: none;
	}

	.header-cta {
		padding: 8px 12px;
		font-size: 13.5px;
	}
}

/* ---------------------------------------------------------------------------------------------------------------
 * Site footer
 * ------------------------------------------------------------------------------------------------------------- */

.site-footer {
	background: var(--night);
	color: var(--night-ink);
	padding: clamp(56px, 7cqi, 88px) 0 36px;
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* The brand row (about on the left, badges on the right) over five link columns. */
.site-footer__top {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.site-footer__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.site-footer__about {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer .brand--footer .brand__name {
	font-size: 20px;
	color: #F7F5FF;
	white-space: normal;
}

.site-footer__about p {
	max-width: 360px;
	font-size: 15px;
	line-height: 1.6;
	color: #BDB8E0;
}

.site-footer__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.site-footer__badge {
	display: inline-flex;
	border-radius: 10px;
}

.site-footer__badge img {
	display: block;
	width: 200px;
	height: auto;
}

.site-footer__review {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	color: #EEEBFF;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.site-footer__review:hover {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.12);
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px 28px;
}

.site-footer__cols nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.site-footer__title {
	font-size: 13px;
	font-weight: 800;
	color: #A9A3D6;
}

.site-footer__cols a {
	font-size: 15px;
	color: #EEEBFF;
	text-decoration: none;
}

.site-footer__cols a:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* BLV Group: each product with a few words under its name. */
.site-footer__product {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
}

.site-footer__product span {
	font-size: 13px;
	line-height: 1.4;
	color: #A9A3D6;
}

.site-footer__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.site-footer__ask > div {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-footer__ask strong {
	font-size: 16px;
	color: #F7F5FF;
}

.site-footer__ask span {
	font-size: 14px;
	color: #BDB8E0;
}

.site-footer__ask-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--accent-light);
	color: var(--night);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.site-footer__ask-btn:hover {
	color: var(--night);
	background: #DDD6F5;
}

.site-footer__credit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #A9A3D6;
}

.site-footer__credit a {
	color: #EEEBFF;
}

.site-footer__credit a:hover {
	color: #FFFFFF;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.site-footer__legal button {
	padding: 0;
	border: 0;
	background: none;
	color: #EEEBFF;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.site-footer__legal button:hover {
	color: #FFFFFF;
}

@container page (max-width: 860px) {
	.site-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container page (max-width: 520px) {
	.site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__group {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------------------------------------------------------
 * Shared pieces: cards, chips, FAQ, code, the closing CTA band
 * ------------------------------------------------------------------------------------------------------------- */

.card {
	padding: clamp(22px, 2.6cqi, 32px);
	border-radius: 28px;
	background: var(--card);
	box-shadow: var(--shadow-card);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px var(--line);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.chip:hover {
	color: var(--ink);
	box-shadow: 0 0 0 1px rgba(75, 45, 197, 0.45);
}

.chip[aria-pressed='true'],
.chip[aria-selected='true'],
.chip.is-active {
	background: var(--ink);
	box-shadow: none;
	color: #FFFFFF;
}

.faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq details {
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px rgba(29, 41, 63, 0.08);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
	list-style: none;
	cursor: pointer;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '';
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-right: 2.5px solid var(--ink-2);
	border-bottom: 2.5px solid var(--ink-2);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 150ms ease;
}

.faq details[open] summary::after {
	transform: translateY(3px) rotate(-135deg);
}

.faq .faq__answer {
	padding: 0 24px 22px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-2);
}

.faq .faq__answer p + p {
	margin-top: 10px;
}

.code {
	position: relative;
	border-radius: 20px;
	background: var(--night);
	color: #E8E4FF;
	box-shadow: 0 24px 48px -30px rgba(23, 20, 59, 0.7);
}

.code pre {
	margin: 0;
	padding: 22px 24px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.65;
	white-space: pre;
}

.code__copy {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.code__copy:hover {
	background: rgba(255, 255, 255, 0.2);
}

.cta-band {
	position: relative;
	overflow: hidden;
	background: var(--sky);
	text-align: center;
}

.cta-band__inner {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(72px, 9cqi, 120px) var(--gutter) 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.cta-band__art {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
}

/* Brand marks of the integrations (from inc/icons.php). */
.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px var(--line);
}

.brand-mark svg {
	width: 24px;
	height: 24px;
}

.brand-mark--mailchimp svg {
	fill: #241C15;
}

.brand-mark--hubspot svg {
	fill: #FF7A59;
}

.brand-mark--zapier svg {
	fill: #FF4F00;
}

.brand-mark--kit svg {
	fill: #1C1C1C;
}

.brand-mark--make svg {
	fill: #6D00CC;
}

/* The embedded calculator: a frame that keeps the widget clear of the page's own styles. */
.widget-frame {
	position: relative;
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: var(--shadow-card);
}
