


/* ════════════════════════════════════════════════════
	HERO: full-bleed photo, white fade at top,
	title in the negative space
════════════════════════════════════════════════════ */
.ct-hero {
	position: relative;
	min-height: 94vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	padding: 9.5rem 2rem 4rem;
	overflow: hidden;
}
.ct-hero-bg {
	position: absolute;
	inset: 0;
	/* Unsplash: healthy food flat lay. Download & self-host before launch:
		background-image: url('./images/media/calorie-tracker-hero.jpg'); */
	background-image: url('../images/media/cal-header-bground-2.jpg');
	background-size: cover;
	background-position: center bottom;
	z-index: 0;
}
.ct-hero-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom,
		rgba(255,255,255,1) 35%,
		rgba(255,255,255,0.5) 65%,
		rgba(255,255,255,0.2) 80%,
		rgba(255,255,255,0) 100%);
	z-index: 1;
	pointer-events: none;
}
.ct-hero-text { position: relative; z-index: 2; max-width: 720px; }
.ct-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--accent-bg-strong);
	color: var(--accent);
	padding: 0.35rem 1rem;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 1.8rem;
	animation: fadeInDown 0.7s ease-out;
}
.ct-hero h1 {
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
	margin-bottom: 1.3rem;
	animation: fadeInUp 0.7s ease-out 0.1s both;
}
.ct-hero h1 em { font-style: normal; color: var(--accent); }
.ct-hero .ct-hero-sub {
	font-size: 1.12rem;
	color: var(--text-secondary);
	max-width: 560px;
	margin: 0 auto 2.2rem;
	line-height: 1.7;
	animation: fadeInUp 0.7s ease-out 0.2s both;
}
.ct-hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	animation: fadeInUp 0.7s ease-out 0.35s both;
}
.ct-hero .store-badges { animation: fadeInUp 0.7s ease-out 0.45s both; }

/* ════════════════════════════════════════════════════
	STATEMENT BAND: "Free. Actually free."
════════════════════════════════════════════════════ */
.ct-statement {
	background: var(--bg-white);
	text-align: center;
	padding: 5.5rem 2rem 5rem;
}
.ct-statement h2 {
	font-size: clamp(1.8rem, 3.8vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 1rem;
}
.ct-statement h2 em { font-style: normal; color: var(--accent); }
.ct-statement > p {
	color: var(--text-secondary);
	font-size: 1.02rem;
	max-width: 540px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}
.ct-statement-checks {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	list-style: none;
}
.ct-statement-checks li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--text-primary);
}
.ct-statement-checks .check {
	width: 22px; height: 22px;
	background: var(--green-bg);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--green);
}
.ct-statement-checks .check svg { width: 12px; height: 12px; }

/* ════════════════════════════════════════════════════
	SHARED: two-column split with a 9:16 phone screenshot
════════════════════════════════════════════════════ */
.ct-split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 4rem;
	align-items: center;
	max-width: 1060px;
	margin: 0 auto;
}
.ct-split.reverse { direction: rtl; }
.ct-split.reverse > * { direction: ltr; }
.ct-split-text h2 {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.9rem;
}
.ct-split-text > p {
	color: var(--text-secondary);
	font-size: 0.98rem;
	line-height: 1.7;
	margin-bottom: 1.6rem;
	max-width: 520px;
}

/* Phone screenshot frame (9:16). Drop your screenshot <img> inside. */
.ct-phone {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 9 / 16;
	margin: 0 auto;
	border-radius: 22px;
	overflow: hidden;
	background: var(--bg-off-white);
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-xl);
	position: relative;
}
.ct-phone img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
/* Placeholder shown until the screenshot is added; delete the
	.ct-phone-placeholder div once the real <img> is in place */
.ct-phone-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	border: 2px dashed var(--border);
	border-radius: 22px;
	color: var(--text-muted);
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
	padding: 1rem;
}
.ct-phone-placeholder svg { width: 30px; height: 30px; opacity: 0.6; }

/* ════════════════════════════════════════════════════
	SECTION: DASHBOARD (calories + macros)
════════════════════════════════════════════════════ */
.ct-dashboard-section {
	background: var(--bg-off-white);
	padding: 6.5rem 2rem;
}

/* Macro bars card (sits under the text in the left column) */
.ct-macro-card {
	background: var(--bg-white);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 1.4rem 1.6rem;
	max-width: 460px;
}
.ct-macro-card-title {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 1.1rem;
}
.ct-macros { display: flex; flex-direction: column; gap: 0.95rem; }
.ct-macro-header {
	display: flex; justify-content: space-between;
	font-size: 0.86rem; font-weight: 600;
	margin-bottom: 0.35rem;
}
.ct-macro-vals { font-weight: 700; }
.ct-dim { color: var(--text-muted); font-weight: 500; }
.ct-bar-bg { height: 8px; background: var(--bg-light); border-radius: 50px; overflow: hidden; }
.ct-bar-fill { height: 100%; border-radius: 50px; }
.ct-fill-protein { background: linear-gradient(90deg, var(--ct-blue), var(--ct-blue-light)); width: 66%; }
.ct-fill-carbs   { background: linear-gradient(90deg, var(--amber), #FBBF24); width: 70%; }
.ct-fill-fat     { background: linear-gradient(90deg, var(--accent-deep), var(--accent-softer)); width: 63%; }

/* ════════════════════════════════════════════════════
	SECTION: GOALS (units, target, lose/maintain/gain)
════════════════════════════════════════════════════ */
.ct-goals-section {
	background: var(--bg-white);
	padding: 6.5rem 2rem;
}

/* Goal option cards, borrowed from the app's goal-setting UI */
.ct-option-cards {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	max-width: 460px;
}
.ct-option-card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	background: var(--bg-off-white);
	border: 1.5px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 0.9rem 1.1rem;
	transition: all 0.25s ease;
}
.ct-option-card:hover { box-shadow: var(--shadow-sm); }
.ct-option-card.selected {
	background: var(--accent-bg);
	border-color: var(--accent);
}
.ct-option-radio {
	width: 20px; height: 20px;
	min-width: 20px;
	border-radius: 50%;
	border: 2px solid var(--border);
	position: relative;
}
.ct-option-card.selected .ct-option-radio { border-color: var(--accent); }
.ct-option-card.selected .ct-option-radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--accent);
}
.ct-option-label { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.ct-option-sub { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

/* ════════════════════════════════════════════════════
	SECTION: WEIGHT (green trend chart)
════════════════════════════════════════════════════ */
.ct-weight-section {
	background: var(--bg-warm);
	padding: 6.5rem 2rem;
	text-align: center;
}
.ct-weight-header { max-width: 600px; margin: 0 auto 2.6rem; }
.ct-weight-header h2 {
	font-size: clamp(1.8rem, 3.8vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.9rem;
}
.ct-weight-header p {
	color: var(--text-secondary);
	font-size: 1.02rem;
	line-height: 1.7;
}

.ct-weight-chart-card {
	max-width: 760px;
	margin: 0 auto;
	background: var(--bg-white);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 1.8rem 2rem 1.2rem;
	text-align: left;
	transition: box-shadow 0.4s ease;
}
.ct-weight-chart-card:hover { box-shadow: var(--shadow-xl); }
.ct-weight-chart-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 1.2rem;
}
.ct-weight-chart-title {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.ct-weight-chart-delta {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--green);
}
.ct-weight-chart { width: 100%; height: auto; display: block; }
.ct-weight-axis {
	display: flex;
	justify-content: space-between;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--text-muted);
	padding: 0.5rem 0.2rem 0;
}

.ct-weight-details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 860px;
	margin: 3rem auto 0;
	text-align: left;
}
.ct-weight-details h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.ct-weight-details p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.55; }

/* ════════════════════════════════════════════════════
	SECTION: BARCODE + TIMELINE (fast logging)
════════════════════════════════════════════════════ */
.ct-day-section {
	background: var(--bg-off-white);
	padding: 6.5rem 2rem;
}
.ct-day-inner {
	max-width: 1060px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 4rem;
	align-items: start;
}
.ct-day-intro { position: sticky; top: 110px; }
.ct-day-intro h2 {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.9rem;
}
.ct-day-intro > p {
	color: var(--text-secondary);
	font-size: 0.96rem;
	line-height: 1.7;
	margin-bottom: 1.6rem;
}

/* Barcode callout card (moved here from the old bento grid) */
.ct-barcode-card {
	background: var(--bg-white);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 1.4rem 1.6rem;
	max-width: 400px;
}
.ct-barcode-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.ct-barcode-card p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.6; margin-bottom: 1.1rem; }
.ct-barcode {
	display: flex; align-items: flex-end; gap: 3px;
	height: 54px;
	padding: 0 0.2rem;
}
.ct-barcode i {
	display: block;
	background: var(--text-primary);
	height: 100%;
	border-radius: 1px;
	opacity: 0.85;
}
.ct-barcode-scanline {
	position: relative;
	/* margin-top: -32px; */
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
	box-shadow: 0 0 8px rgba(205, 59, 227, 0.6);

	transform: translateY(-27px);
}

.ct-timeline {
	list-style: none;
	position: relative;
	padding-left: 2rem;
}
.ct-timeline::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: linear-gradient(to bottom, var(--accent-softer), var(--ct-blue-light));
	border-radius: 2px;
	opacity: 0.5;
}
.ct-timeline li { position: relative; padding-bottom: 2.2rem; }
.ct-timeline li:last-child { padding-bottom: 0; }
.ct-timeline li::before {
	content: '';
	position: absolute;
	left: -2rem;
	top: 6px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--bg-white);
	border: 2px solid var(--accent);
	box-shadow: 0 0 0 4px var(--accent-bg);
}
.ct-timeline .ct-time {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	display: block;
	margin-bottom: 0.2rem;
}
.ct-timeline h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.ct-timeline p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; max-width: 460px; }

/* ════════════════════════════════════════════════════
	CTA: full-width accent band
════════════════════════════════════════════════════ */
.ct-cta {
	background: linear-gradient(135deg, var(--accent-deep), var(--accent));
	color: #fff;
	text-align: center;
	padding: 6rem 2rem;
}
.ct-cta h2 {
	font-size: clamp(1.8rem, 3.8vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.9rem;
}
.ct-cta p {
	color: rgba(255,255,255,0.85);
	font-size: 1.02rem;
	max-width: 460px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}
.ct-cta .btn-primary {
	background: #fff;
	color: var(--accent-deep);
}
.ct-cta .btn-primary:hover {
	background: var(--bg-off-white);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.ct-cta .store-badge-btn { background: rgba(26, 29, 38, 0.55); }



/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
	.ct-split, .ct-split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2.5rem; }
	.ct-day-inner { grid-template-columns: 1fr; gap: 2.5rem; }
	.ct-day-intro { position: static; }
	.ct-weight-details { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 700px) {
	.ct-hero { min-height: auto; padding: 7.5rem 1.5rem 3rem; }
	.ct-hero-bg { background-position: center 80%; }
	.ct-dashboard-section, .ct-goals-section, .ct-weight-section, .ct-day-section { padding: 4.5rem 1.5rem; }
	.ct-weight-chart-card { padding: 1.3rem 1.2rem 1rem; }
}

