/* CitizenConnect landing page (/) — see design_handoff_citizenconnect_landing/README.md */

/* Loaded only on this page, so a bare body rule is safe. */
body { margin: 0; }

.cc-page {
	--cc-blue: #2563EB;
	--cc-blue-dark: #1E40AF;
	--cc-blue-pale: #EFF6FF;
	--cc-ink: #16181D;
	--cc-body: #3A3E46;
	--cc-muted: #6A6F79;
	--cc-grey: #F4F5F7;
	--cc-card: #F1F2F5;
	--cc-border: #D8DBE0;

	width: 100%;
	overflow-x: hidden;
	font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #26292F;
	-webkit-font-smoothing: antialiased;
}

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

.cc-page ::selection { background: var(--cc-blue-pale); }

.cc-page a { color: var(--cc-blue); text-decoration: none; }
.cc-page a:hover { color: var(--cc-blue-dark); text-decoration: underline; }
.cc-page a:focus-visible { outline: 2px solid var(--cc-blue); outline-offset: 2px; }

.cc-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.cc-section { padding: 96px 24px; }
.cc-section--grey { background: var(--cc-grey); }

.cc-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc-muted);
	margin-bottom: 14px;
}

.cc-h2 {
	margin: 0 0 12px;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--cc-ink);
	text-wrap: balance;
}

.cc-lead {
	margin: 0 0 56px;
	max-width: 560px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--cc-body);
	text-wrap: pretty;
}

.cc-h2--features { margin: 0 0 56px; max-width: 620px; }

.cc-download .cc-h2 { margin-bottom: 14px; }

/* Store badges */
.cc-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* No container — the artwork is the button. Google's PNG carries 41px of clear space
   on all four sides (16.4% of the 646x250 file); drawing it at 59.52px and pulling the
   clear space back off with a negative margin puts both pills at the same 40px height
   and makes each link box hug what you actually see. */
.cc-badge { display: block; }
.cc-badge img { display: block; width: auto; height: 40px; }
.cc-badge--play img { height: 59.52px; margin: -9.76px; }

/* 1. Hero */
.cc-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #FFFFFF;
	border-bottom: 1px solid #E6E8EC;
}

/* Street-grid map pattern: two road weights, faded out from the centre so it
   never competes with the headline or the phone. */
.cc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.16) 0 1.5px, transparent 1.5px 132px),
		repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.16) 0 1.5px, transparent 1.5px 132px),
		repeating-linear-gradient(0deg, rgba(22, 24, 29, 0.07) 0 1px, transparent 1px 44px),
		repeating-linear-gradient(90deg, rgba(22, 24, 29, 0.07) 0 1px, transparent 1px 44px);
	-webkit-mask-image: radial-gradient(120% 90% at 50% 40%, transparent 22%, #000 78%);
	mask-image: radial-gradient(120% 90% at 50% 40%, transparent 22%, #000 78%);
}

.cc-glow {
	position: absolute;
	pointer-events: none;
	border-radius: 999px;
}

.cc-glow--blue {
	width: 760px; height: 760px;
	top: -22%; right: -12%;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 68%);
	animation: ccDrift 22s ease-in-out infinite;
}

.cc-glow--teal {
	width: 620px; height: 620px;
	bottom: -28%; left: -16%;
	background: radial-gradient(circle, rgba(14, 116, 144, 0.10) 0%, rgba(14, 116, 144, 0) 70%);
	animation: ccDrift 28s ease-in-out infinite reverse;
}

.cc-hero__row {
	position: relative;
	flex: 1;
	padding: 72px 24px;
	display: grid;
	align-content: center;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 56px;
	align-items: center;
}

.cc-brand {
	display: flex;
	align-items: center;
	gap: clamp(8px, 3vw, 14px);
	margin-bottom: 26px;
}

.cc-brand__mark {
	width: clamp(34px, 10vw, 70px); height: clamp(34px, 10vw, 70px);
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Deliberately larger than its box so the mark's own padding is cropped out. */
.cc-brand__mark img { width: 136%; height: 136%; flex: none; object-fit: contain; }

.cc-brand__name {
	font-size: clamp(18px, 5vw, 30px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--cc-ink);
}

.cc-brand__tagline { font-size: clamp(12px, 3.2vw, 16px); font-weight: 500; color: var(--cc-muted); }

.cc-brand__seal { height: clamp(34px, 10vw, 70px); width: auto; flex: none; }

.cc-h1 {
	margin: 0 0 20px;
	font-size: clamp(38px, 5.4vw, 66px);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.02em;
	color: var(--cc-ink);
	text-wrap: balance;
}

.cc-h1 span { display: block; }
.cc-h1 .cc-h1__accent { color: var(--cc-blue); }

.cc-hero__body {
	margin: 0 0 32px;
	max-width: 460px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cc-body);
	text-wrap: pretty;
}

.cc-fineprint { margin: 16px 0 0; font-size: 13px; color: var(--cc-muted); }

.cc-phone-cell {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cc-phone__halo {
	align-self: center;
	position: absolute;
	pointer-events: none;
	width: 500px; height: 500px;
	max-width: 120%;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
	animation: ccGlow 7s ease-in-out infinite;
}

.cc-phone {
	/* The app mock inside is authored at the app's own 411px logical width and scaled to
	   fit: (phone width - 2x padding) / 411. Change the width and this moves with it. */
	--app-scale: 0.978;
	/* Kept in a variable because the float animation has to re-apply it on every frame,
	   and because it is the one number worth playing with. `none` sits it up straight. */
	--phone-tilt: perspective(1600px) rotateX(2.5deg) rotateY(-11deg) rotateZ(1.5deg);

	position: relative;
	width: 420px;
	max-width: 100%;
	aspect-ratio: 9 / 19.5;
	border-radius: 46px;
	padding: 11px;
	background: linear-gradient(145deg, #3A3F49 0%, #16181D 34%, #0D0F13 100%);
	transform: var(--phone-tilt);
	box-shadow:
		/* Extruded side band: stacked hard shadows offset the way the tilt turns the
		   device, so the body reads as a solid with thickness rather than a cutout. */
		2px 1px 0 #454A54,
		4px 2px 0 #2E323A,
		6px 3px 0 #24272E,
		8px 4px 0 #1B1E23,
		10px 5px 0 #121418,
		0 2px 6px rgba(9, 20, 52, 0.30),
		0 44px 90px -26px rgba(9, 20, 52, 0.55),
		inset 0 0 0 1px rgba(255, 255, 255, 0.10);
	animation: ccFloat 9s ease-in-out infinite;
}

/* Volume rocker (the gap in the gradient is the second button) and power button. */
.cc-phone::before,
.cc-phone::after {
	content: "";
	position: absolute;
	width: 3px;
}

.cc-phone::before {
	top: 17%; left: -3px;
	height: 15%;
	border-radius: 3px 0 0 3px;
	background: linear-gradient(#3A3F49 0 44%, #16181D 44% 56%, #3A3F49 56% 100%);
}

.cc-phone::after {
	top: 23%; right: -3px;
	height: 9%;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(#3A3F49, #22252C);
}

.cc-phone__screen {
	position: relative;
	width: 100%; height: 100%;
	border-radius: 36px;
	overflow: hidden;
	background: var(--cc-blue);
}

/* Glass: one soft highlight raking across the screen, so the tilt reads as a surface. */
.cc-phone__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(242deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0) 44%);
}

/* ---------------------------------------------------------------------------
   In-frame app mock: the Activity tab of a report, per
   mockup-reference/tracking-screen-spec.md. Built at the app's own logical sizes
   (411px wide, which map 1:1 to CSS px) and scaled down to the 258px screen, so
   every value below is the number from the spec rather than a scaled guess.
   --------------------------------------------------------------------------- */
.cc-app {
	--app-teal: #0E7490;  --app-teal-text: #0B5E75;
	--app-green: #0F7A4A; --app-green-text: #0A5B37;
	--app-amber: #8A5200; --app-amber-text: #6E4200;

	/* Both axes are the screen's own size divided by the scale, so the mock always
	   lays out at the app's logical size and lands exactly on the screen. */
	width: calc(100% / var(--app-scale));
	height: calc(100% / var(--app-scale));
	transform: scale(var(--app-scale));
	transform-origin: top left;
	background: #FFFFFF;
	color: var(--cc-ink);
	text-align: left;
	cursor: default;
	user-select: none;
}

.cc-app img { max-width: none; }

.cc-app__statusbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 26px;
	padding: 0 20px;
	background: var(--cc-blue);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
}

.cc-app__sys { display: flex; gap: 5px; }
.cc-app__sys i { display: block; width: 14px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); }

.cc-app__gov {
	display: flex;
	align-items: center;
	height: 30px;
	padding: 0 20px;
	background: var(--cc-blue);
}

.cc-app__govtile {
	width: 18px; height: 18px;
	border-radius: 4px;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cc-app__govtile img { width: 16px; height: 16px; object-fit: contain; }

.cc-app__govname {
	margin-left: 8px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.26px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.cc-app__titlebar {
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 16px;
	border-bottom: 1px solid var(--cc-border);
}

.cc-app__back { width: 22px; height: 22px; flex: none; }
.cc-app__screen-title { margin-left: 14px; font-size: 19px; font-weight: 800; }

.cc-app__ref {
	margin-left: auto;
	font-family: ui-monospace, "Roboto Mono", monospace;
	font-size: 11.5px;
	font-weight: 600;
}

.cc-app__copy { width: 16px; height: 16px; margin-left: 6px; flex: none; }

.cc-app__tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--cc-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--cc-muted);
	text-align: center;
}

.cc-app__tabs span { padding: 13px 0; }
.cc-app__tabs em { font-style: normal; color: var(--cc-muted); }

.cc-app__tabs .is-active {
	font-weight: 700;
	color: var(--cc-blue);
	box-shadow: inset 0 -3px 0 var(--cc-blue);
}

.cc-app__panel { padding: 16px; }

.cc-app__section { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.cc-app__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cc-app__refresh { font-size: 11.5px; font-weight: 700; color: var(--cc-blue); }

.cc-app__label--spaced { margin-top: 18px; }
.cc-app__rule { height: 1px; margin: 14px 0; background: var(--cc-border); }

/* Screens: the app's home (My reports) and one report */
.cc-screen { height: calc(100% - 56px); }

.cc-screen--home {
	flex-direction: column;
	position: relative;
	background: var(--cc-grey);
}

.cc-app__screen-title--home { margin-left: 0; }

.cc-filter {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	margin-left: auto;
	padding: 0 14px;
	border-radius: 10px;
	background: #E8E9EC;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.48px;
	text-transform: uppercase;
}

.cc-filter svg { width: 17px; height: 17px; }

.cc-chips {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	background: #FFFFFF;
	border-bottom: 1px solid var(--cc-border);
}

.cc-chips span {
	padding: 9px 16px;
	border-radius: 999px;
	background: #E8E9EC;
	color: var(--cc-body);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.cc-chips .is-on { background: var(--cc-ink); color: #FFFFFF; }

.cc-list { flex: 1; padding: 12px; }

.cc-card {
	border: 1px solid var(--cc-border);
	border-radius: 12px;
	background: #FFFFFF;
	overflow: hidden;
}

.cc-card__photo { display: block; width: 100%; height: 132px; object-fit: cover; }
.cc-card__body { padding: 14px; }
.cc-card__top { display: flex; align-items: center; }

.cc-card__ref {
	margin-left: auto;
	font-family: ui-monospace, "Roboto Mono", monospace;
	font-size: 11px;
	font-weight: 600;
	color: var(--cc-muted);
}

.cc-card__title {
	margin: 10px 0 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.18px;
}

.cc-card__desc { margin: 7px 0 13px; font-size: 13.5px; line-height: 1.5; color: #4A4E57; }
.cc-card__foot { display: flex; justify-content: space-between; margin-top: 11px; font-size: 12px; font-weight: 600; color: #4A4E57; }

.cc-card__rate {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #FFF8E8;
	color: var(--app-amber-text);
	font-size: 12px;
}

.cc-card__rate svg { width: 19px; height: 19px; flex: none; }
.cc-card__rate b { display: block; font-size: 13px; font-weight: 700; }

.cc-chev {
	width: 8px; height: 8px;
	margin-left: auto;
	flex: none;
	border-top: 2px solid var(--app-amber);
	border-right: 2px solid var(--app-amber);
	transform: rotate(45deg);
}

.cc-fab {
	position: absolute;
	right: 16px;
	bottom: 88px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 50%;
	height: 52px;
	padding: 0 18px;
	border-radius: 10px;
	background: var(--cc-blue);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cc-nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: #FFFFFF;
	border-top: 1px solid var(--cc-border);
}

.cc-nav span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 12px 0 16px;
	border-top: 4px solid var(--cc-border);
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 600;
}

.cc-nav svg { width: 20px; height: 20px; }
.cc-nav .is-on { border-top-color: var(--cc-blue); color: var(--cc-blue); }

/* Overview tab */
.cc-app__photo {
	display: block;
	width: calc(100% + 32px);
	height: 150px;
	margin: -16px -16px 14px;
	object-fit: cover;
}

.cc-pill {
	display: none;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid var(--cc-blue);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.66px;
	text-transform: uppercase;
	color: var(--cc-blue-dark);
}

.cc-pill i {
	width: 7px; height: 7px;
	margin-right: 7px;
	border-radius: 999px;
	background: var(--cc-blue);
}

.cc-pill--teal { border-color: var(--app-teal); color: var(--app-teal-text); }
.cc-pill--teal i { background: var(--app-teal); }
.cc-pill--green { border-color: var(--app-green); color: var(--app-green-text); }
.cc-pill--green i { background: var(--app-green); }
.cc-pill--amber { border-color: var(--app-amber); color: var(--app-amber-text); }
.cc-pill--amber i { background: var(--app-amber); }

.cc-app__issue {
	margin: 14px 0 0;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.38px;
}

.cc-app__sub { margin: 6px 0 0; font-size: 12.5px; font-weight: 500; color: var(--cc-muted); }

/* Rating prompt, shown on a resolved report */
.cc-rate {
	margin-top: 14px;
	padding: 13px 14px;
	border-radius: 12px;
	background: #FFF8E8;
	color: var(--app-amber-text);
}

.cc-rate__head { display: flex; align-items: center; font-size: 16px; font-weight: 800; }
.cc-rate__head svg { width: 18px; height: 18px; margin-right: 8px; }
.cc-rate p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.45; }

.cc-rate__btn {
	display: flex;
	align-items: center;
	height: 44px;
	margin-top: 9px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--app-amber);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
}

.cc-app__panel-rows {
	margin-top: 9px;
	border-radius: 12px;
	background: var(--cc-card);
}

.cc-app__panel-rows > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 13px;
	border-top: 1px solid var(--cc-border);
}

.cc-app__panel-rows > div:first-child { border-top: 0; }
.cc-app__panel-rows span { font-size: 12.5px; font-weight: 500; color: var(--cc-muted); }
.cc-app__panel-rows b { font-size: 13px; font-weight: 700; text-align: right; }

/* Comments tab */
.cc-comment {
	margin-bottom: 12px;
	padding: 11px 12px;
	border-radius: 12px;
	background: var(--cc-card);
}

.cc-comment--you { border-left: 3px solid var(--cc-blue); }
.cc-comment__head { display: flex; align-items: center; }

.cc-comment__avatar {
	width: 34px; height: 34px;
	margin-right: 10px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
}

.cc-comment__avatar--agency { background: var(--cc-blue); }
.cc-comment__avatar--you { background: var(--cc-ink); }
.cc-comment__name { font-size: 13px; font-weight: 700; }
.cc-comment__date { margin-left: auto; font-size: 11px; font-weight: 500; color: #8A8F99; }
.cc-comment p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #26292F; }

.cc-composer { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.cc-composer__photo {
	width: 52px; height: 52px;
	flex: none;
	border-radius: 10px;
	background: var(--cc-card);
}

.cc-composer__input {
	flex: 1;
	height: 52px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--cc-card);
	font-size: 13px;
	color: var(--cc-muted);
}

.cc-composer__send {
	width: 52px; height: 52px;
	flex: none;
	border-radius: 10px;
	background: var(--cc-blue);
}
.cc-app__text { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #26292F; }

.cc-app__map {
	height: 120px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Street grid drawn in CSS - a real map needs a tile request this page should not make. */
	background:
		repeating-linear-gradient(0deg, transparent 0 30px, #FFFFFF 30px 37px),
		repeating-linear-gradient(90deg, transparent 0 52px, #FFFFFF 52px 59px),
		linear-gradient(140deg, #EDEFF2 0%, #E6E9ED 100%);
}

.cc-app__pin {
	width: 14px; height: 14px;
	border-radius: 999px;
	background: var(--cc-blue);
	box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.cc-app__coords {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	font-family: ui-monospace, "Roboto Mono", monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--cc-body);
}

.cc-app__maplink {
	font-family: Archivo, system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--cc-blue);
	text-decoration: underline;
}

/* Status history: filled dot per entry, 2px rail between them, newest first. */
/* Holds the full history's height so the location block below does not jump as
   entries arrive. */
.cc-hist { min-height: 193px; }

.cc-hist__empty { display: none; margin: 0; font-size: 13.5px; color: var(--cc-muted); }

.cc-hist__item {
	position: relative;
	padding-left: 26px;
	padding-bottom: 20px;
}

.cc-hist__item::before {
	content: "";
	position: absolute;
	left: 0; top: 3px;
	width: 13px; height: 13px;
	border-radius: 999px;
	background: var(--cc-blue);
}

/* The rail joins an entry to the older one below it, so the oldest entry has none. */
.cc-hist__item::after {
	content: "";
	position: absolute;
	left: 5.5px; top: 16px; bottom: 0;
	width: 2px;
	background: var(--cc-border);
}

.cc-hist__item:last-child { padding-bottom: 0; }
.cc-hist__item:last-child::after { display: none; }

.cc-hist__title { display: block; font-size: 14px; font-weight: 700; color: var(--cc-blue-dark); }
.cc-hist__time { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--cc-muted); }

.cc-hist__item--teal::before { background: var(--app-teal); }
.cc-hist__item--teal .cc-hist__title { color: var(--app-teal-text); }
.cc-hist__item--green::before { background: var(--app-green); }
.cc-hist__item--green .cc-hist__title { color: var(--app-green-text); }
.cc-hist__item--amber::before { background: var(--app-amber); }
.cc-hist__item--amber .cc-hist__title { color: var(--app-amber-text); }

/* Static state, used when the script never runs (no JS, or reduced motion): the finished
   report on its Overview tab, with the whole history behind it. */
.cc-screen { display: none; }
.cc-screen--issue { display: block; }
.cc-app__panel { display: none; }
.cc-app__panel--overview { display: block; }
.cc-pill--final { display: inline-flex; }

/* The loop: .cc-app--loop is added by the script; data-screen picks the screen, data-tab
   the tab within a report, and data-step how far that report has got. */
.cc-app--loop .cc-screen--issue { display: none; }
.cc-app--loop[data-screen="0"] .cc-screen--home { display: flex; }
.cc-app--loop[data-screen="1"] .cc-screen--issue { display: block; }

.cc-app--loop .cc-app__panel--overview { display: none; }
.cc-app--loop .cc-pill--final { display: none; }
.cc-app--loop .cc-rate { display: none; }

.cc-app--loop[data-tab="0"] .cc-app__panel--overview,
.cc-app--loop[data-tab="1"] .cc-app__panel--activity,
.cc-app--loop[data-tab="2"] .cc-app__panel--comments { display: block; }

.cc-app--loop .cc-app__tabs span { font-weight: 600; color: var(--cc-muted); box-shadow: none; }

.cc-app--loop[data-tab="0"] .cc-app__tabs span:nth-child(1),
.cc-app--loop[data-tab="1"] .cc-app__tabs span:nth-child(2),
.cc-app--loop[data-tab="2"] .cc-app__tabs span:nth-child(3) {
	font-weight: 700;
	color: var(--cc-blue);
	box-shadow: inset 0 -3px 0 var(--cc-blue);
}

.cc-app--loop[data-step="0"] .cc-pill:nth-of-type(1),
.cc-app--loop[data-step="1"] .cc-pill:nth-of-type(2),
.cc-app--loop[data-step="2"] .cc-pill:nth-of-type(3),
.cc-app--loop[data-step="3"] .cc-pill:nth-of-type(4),
.cc-app--loop[data-step="4"] .cc-pill:nth-of-type(5) { display: inline-flex; }

/* The rating prompts only exist once the report is resolved. */
.cc-app--loop .cc-card__rate { display: none; }
.cc-app--loop[data-step="4"] .cc-rate { display: block; }
.cc-app--loop[data-step="4"] .cc-card__rate { display: flex; }

.cc-app--loop .cc-hist__item { display: none; }
.cc-app--loop[data-step="0"] .cc-hist__empty { display: block; }
.cc-app--loop[data-step="1"] .cc-hist__item:nth-last-child(-n + 1),
.cc-app--loop[data-step="2"] .cc-hist__item:nth-last-child(-n + 2),
.cc-app--loop[data-step="3"] .cc-hist__item:nth-last-child(-n + 3),
.cc-app--loop[data-step="4"] .cc-hist__item:nth-last-child(-n + 4) {
	display: block;
	animation: ccUp 0.5s cubic-bezier(.22, .7, .2, 1) both;
}

.cc-cue {
	display: flex;
	justify-content: center;
	padding: 0 24px 28px;
}

.cc-cue svg { animation: ccCue 2.2s ease-in-out infinite; }

/* 2. How it works */
.cc-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 36px;
}

.cc-meter { display: flex; gap: 4px; margin-bottom: 24px; }

.cc-meter span {
	height: 4px;
	flex: 1;
	border-radius: 999px;
	background: var(--cc-border);
}

.cc-meter span.is-filled {
	background-image: linear-gradient(var(--cc-blue), var(--cc-blue));
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.cc-step__icon {
	width: 44px; height: 44px;
	border-radius: 999px;
	background: var(--cc-blue-pale);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.cc-step__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--cc-ink);
}

.cc-step__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cc-body);
	text-wrap: pretty;
}

/* 3. Features */
.cc-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 16px;
}

.cc-feature {
	background: var(--cc-card);
	border-radius: 12px;
	padding: 24px;
}

.cc-feature__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cc-ink);
}

.cc-feature__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cc-body);
	text-wrap: pretty;
}

/* 4. Download */
.cc-download__body {
	margin: 0 0 28px;
	max-width: 440px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--cc-body);
	text-wrap: pretty;
}

.cc-download .cc-badges { margin-bottom: 20px; }

.cc-download__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	align-items: flex-start;
}

.cc-hero__qr {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
}

.cc-qr { width: 104px; height: 104px; flex: none; background: #FFFFFF; }
.cc-qr svg { width: 100%; height: 100%; display: block; }

.cc-qr__label { font-size: 13px; font-weight: 600; color: var(--cc-ink); }
.cc-qr__sub { margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--cc-muted); max-width: 200px; }

@media (max-width: 1000px) {
	.cc-phone {
		--app-scale: 0.749;
		width: 330px;
	}
}

/* The whole device has to land inside the first screen, so its width steps down with the
   viewport height. Width and --app-scale are one pair - scale is (width - 22) / 411, the
   app's logical width - so change them together or the mock lays out at the wrong size. */
@media (max-height: 1074px) { .cc-hero__row { padding: 40px 24px; } }
@media (max-height: 1029px) { .cc-phone { width: 380px; --app-scale: 0.871; } }
@media (max-height: 942px)  { .cc-phone { width: 330px; --app-scale: 0.749; } }
@media (max-height: 834px)  { .cc-phone { width: 290px; --app-scale: 0.652; } }
@media (max-height: 747px)  { .cc-phone { width: 250px; --app-scale: 0.555; } }
@media (max-height: 661px)  { .cc-phone { width: 210px; --app-scale: 0.457; } }

/* Nobody scans a QR code with the phone that is displaying it - on a handset the store
   badges directly above are the path, so the code only gets in the way. */
@media (max-width: 720px) {
	.cc-hero__qr { display: none; }
}

/* 5. Footer */
.cc-footer {
	background: var(--cc-grey);
	border-top: 1px solid var(--cc-border);
	padding: 64px 24px;
}

.cc-footer .cc-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}

.cc-footer img { width: 100%; max-width: 520px; height: auto; }

.cc-footer__version { font-size: 13px; color: var(--cc-muted); }

/* Scroll reveal (JS adds .cc-reveal, so no-JS keeps everything visible) */
.cc-reveal { opacity: 0; }
.cc-reveal.is-in { animation: ccUp 0.7s cubic-bezier(.22, .7, .2, 1) both; }

.cc-steps > .cc-reveal.is-in:nth-child(2),
.cc-features > .cc-reveal.is-in:nth-child(2) { animation-delay: 0.08s; }
.cc-steps > .cc-reveal.is-in:nth-child(3),
.cc-features > .cc-reveal.is-in:nth-child(3) { animation-delay: 0.16s; }
.cc-features > .cc-reveal.is-in:nth-child(4) { animation-delay: 0.24s; }
.cc-features > .cc-reveal.is-in:nth-child(5) { animation-delay: 0.32s; }
.cc-features > .cc-reveal.is-in:nth-child(6) { animation-delay: 0.40s; }
.cc-features > .cc-reveal.is-in:nth-child(7) { animation-delay: 0.48s; }

/* The meter is a cumulative indicator, so it fills left to right as the card arrives. */
.cc-reveal .cc-meter span.is-filled { background-size: 0 100%; }

.cc-reveal.is-in .cc-meter span.is-filled {
	background-size: 100% 100%;
	transition: background-size 0.45s cubic-bezier(.22, .7, .2, 1) 0.15s;
}

.cc-reveal.is-in .cc-meter span.is-filled:nth-child(2) { transition-delay: 0.27s; }
.cc-reveal.is-in .cc-meter span.is-filled:nth-child(3) { transition-delay: 0.39s; }

/* Entrance stagger */
.cc-up { opacity: 0; animation: ccUp 0.8s cubic-bezier(.22, .7, .2, 1) both; }
.cc-up--brand { animation-duration: 0.7s; animation-delay: 0.05s; }
.cc-up--l1 { animation-delay: 0.20s; }
.cc-up--l2 { animation-delay: 0.30s; }
.cc-up--l3 { animation-delay: 0.40s; }
.cc-up--body { animation-delay: 0.50s; }
.cc-up--badges { animation-delay: 0.60s; }
.cc-up--fine { animation-delay: 0.68s; }
.cc-up--qr { animation-delay: 0.76s; }

@keyframes ccUp    { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes ccFloat { 0%, 100% { transform: var(--phone-tilt) translateY(0) }  50% { transform: var(--phone-tilt) translateY(-14px) } }
@keyframes ccGlow  { 0%, 100% { opacity: .55; transform: scale(1) }  50% { opacity: .9; transform: scale(1.06) } }
@keyframes ccDrift { 0%, 100% { transform: translate3d(0, 0, 0) }  50% { transform: translate3d(-28px, 22px, 0) } }
@keyframes ccCue   { 0%, 100% { transform: translateY(0); opacity: .45 }  50% { transform: translateY(7px); opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
	.cc-page *, .cc-page *::before, .cc-page *::after { animation: none !important; }
	.cc-up { opacity: 1; }
}
