/*
  Extra styles for the MachinePulse and LedgerPro product pages only
  (machine-monitoring-software, online-invoicing-software). Plain CSS with real
  colours, like the .fgh hero block in neon.css, not the inverted Tailwind tokens.
*/
#how-it-works,
#oee,
#profit {
	scroll-margin-top: 5rem;
}

.pp-eyebrow {
	display: flex;
	width: fit-content;
	max-width: 100%;
}

.pp-eyebrow span {
	flex: none;
}

/* Formula line above an example */
.pp-formula {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 3rem;
	padding: 0.9rem 1.5rem;
	border: 1px solid rgba(5, 48, 71, 0.12);
	border-radius: 1rem;
	background: #fff;
	color: #053047;
	font-size: clamp(1rem, 0.85rem + 0.8vw, 1.375rem);
	font-weight: 700;
	text-align: center;
	box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.16);
}

/* Example panels (infographics) */
.pp-panel {
	position: relative;
	margin: 0;
	padding: 3.25rem 1.25rem 1.5rem;
	border: 1px solid rgba(5, 48, 71, 0.1);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.16);
}

.pp-panel figcaption {
	margin-top: 1.25rem;
	color: #475569;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
}

.pp-tag {
	position: absolute;
	top: 1rem;
	left: 1.25rem;
	margin: 0;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: #053047;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* OEE gauges */
.pp-oee {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: center;
	gap: 0.25rem;
}

.pp-gauge {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	min-width: 0;
	color: #334155;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
}

.pp-gauge__dial {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 6.5rem;
	aspect-ratio: 1;
}

.pp-gauge__dial svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.pp-gauge__track,
.pp-gauge__value {
	fill: none;
	stroke-width: 9;
}

.pp-gauge__track {
	stroke: #e2e8f0;
}

.pp-gauge__value {
	stroke: #053047;
	stroke-linecap: round;
}

.pp-gauge__dial strong {
	position: relative;
	color: #053047;
	font-size: clamp(1rem, 0.8rem + 1vw, 1.375rem);
	font-weight: 800;
}

.pp-op {
	padding-bottom: 1.6rem;
	color: #64748b;
	font-size: 1.25rem;
	font-weight: 700;
}

.pp-oee > .pp-op:last-of-type {
	grid-column: 1 / -1;
	padding: 0.25rem 0 0;
	text-align: center;
}

.pp-gauge--total {
	grid-column: 1 / -1;
	font-size: 1rem;
}

.pp-gauge--total .pp-gauge__dial {
	max-width: 9.5rem;
}

.pp-gauge--total .pp-gauge__value {
	stroke: #e5780f;
}

.pp-gauge--total .pp-gauge__dial strong {
	font-size: 2rem;
}

/* One shift as a bar */
.pp-shift {
	display: flex;
	height: 2.75rem;
	overflow: hidden;
	border-radius: 0.6rem;
}

.pp-shift__seg--run {
	flex: 66;
	background: #15803d;
}

.pp-shift__seg--idle {
	flex: 16;
	background: #f6861f;
}

.pp-shift__seg--down {
	flex: 9;
	background: #b91c1c;
}

.pp-shift__seg--nolog {
	flex: 9;
	background: repeating-linear-gradient(135deg, #94a3b8 0 6px, #cbd5e1 6px 12px);
}

.pp-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	color: #334155;
	font-size: 0.875rem;
	font-weight: 600;
}

.pp-legend li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.pp-swatch {
	flex: none;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 0.2rem;
}

/* LedgerPro profit example: bars */
.pp-bars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	text-align: center;
}

.pp-bars__col {
	display: grid;
	grid-template-rows: 11.5rem 3.25rem auto;
	min-width: 0;
}

.pp-bars__up {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	border-bottom: 2px solid #053047;
}

.pp-bars__down {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.pp-bar {
	width: min(4.5rem, 70%);
}

.pp-bar--gain {
	border-radius: 0.4rem 0.4rem 0 0;
	background: #15803d;
}

.pp-bar--loss {
	border-radius: 0 0 0.4rem 0.4rem;
	background: repeating-linear-gradient(135deg, #b91c1c 0 6px, #dc2626 6px 12px);
}

.pp-bar--a {
	height: 9rem;
}

.pp-bar--b {
	height: 2.7rem;
}

.pp-bar--c {
	height: 0.9rem;
}

.pp-bars__val {
	color: #166534;
	font-size: 0.875rem;
	font-weight: 700;
}

.pp-bars__name {
	margin-top: 0.5rem;
	color: #053047;
	font-size: 0.9375rem;
	font-weight: 700;
}

.pp-gain {
	color: #166534;
}

.pp-loss,
.pp-bars__val.pp-loss {
	color: #b91c1c;
}

/* LedgerPro profit example: table */
.pp-tablewrap {
	overflow-x: auto;
}

.pp-table {
	width: 100%;
	border-collapse: collapse;
	color: #334155;
	font-size: 0.9375rem;
	text-align: right;
	white-space: nowrap;
}

.pp-table th,
.pp-table td {
	padding: 0.7rem 0.6rem;
	border-bottom: 1px solid rgba(5, 48, 71, 0.1);
}

.pp-table tbody tr:last-child > * {
	border-bottom: 0;
}

.pp-table th {
	color: #053047;
	font-weight: 700;
}

.pp-table th:first-child {
	text-align: left;
}

.pp-table td:last-child {
	font-weight: 700;
}

/* Final call to action: logo and contact block */
.pp-cta-logo {
	display: block;
	width: auto;
	height: 2.5rem;
	margin: 0 auto 1.75rem;
}

.pp-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.75rem;
	margin-top: 2.5rem;
	color: #334155;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 500;
}

.pp-contact a,
.pp-contact span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: inherit;
}

.pp-contact a {
	text-decoration: underline;
	text-decoration-color: rgba(5, 48, 71, 0.3);
	text-underline-offset: 0.2em;
}

.pp-contact a:hover {
	color: #053047;
	text-decoration-color: #e5780f;
}

.pp-contact svg {
	flex: none;
	color: #c2410c;
}

@media (min-width: 640px) {
	.pp-panel {
		padding: 3.5rem 2rem 2rem;
	}

	.pp-oee {
		grid-template-columns: 1fr auto 1fr auto 1fr auto 1.35fr;
		gap: 0.5rem;
	}

	.pp-oee > .pp-op:last-of-type,
	.pp-gauge--total {
		grid-column: auto;
	}

	.pp-oee > .pp-op:last-of-type {
		padding: 0 0 1.6rem;
	}

	.pp-gauge--total .pp-gauge__dial {
		max-width: 8.5rem;
	}

	.pp-gauge--total .pp-gauge__dial strong {
		font-size: 1.75rem;
	}
}

/* Single-column grids: let wide children (the example table) shrink instead of widening the page. */
@media (max-width: 1023.98px) {
	.pp-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.pp-start {
	align-content: start;
}

.pp-contact span {
	text-align: left;
}

@media (max-width: 479.98px) {
	.pp-table {
		font-size: 0.8125rem;
	}

	.pp-table th,
	.pp-table td {
		padding: 0.6rem 0.3rem;
	}

	.pp-table td:last-child {
		white-space: normal;
	}
}
