/* מחשבון פפטידים (/peptide-calculator/) — reconstitution/concentration
   calculator. Inspired by particlepeptides.com's calculator layout but
   redrawn with our own product photography (background removed) and our
   navy/gold/cream palette, plus an added safety-positioning section
   neither reference page has. */

.pp-calc {
	--pc-ink: #1c1c1a;
	--pc-muted: #6b6b64;
	--pc-bg: #faf8f4;
	--pc-bg-alt: #f1efe8;
	--pc-accent: #132040;
	--pc-accent-2: #c9a24b;
	--pc-line: #e4e1d8;
	--pc-danger: #a13d2e;
	--pc-danger-bg: #fbeeea;
	color: var( --pc-ink );
	background: var( --pc-bg );
	direction: rtl;
}

.pp-calc__container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hero */

.pp-calc__hero {
	text-align: center;
	padding: 48px 0 28px;
}

.pp-calc__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --pc-accent-2 );
	margin: 0 0 14px;
}

.pp-calc__title {
	font-size: clamp( 30px, 4.2vw, 44px );
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.2;
}

.pp-calc__subtitle {
	font-size: 16px;
	color: var( --pc-muted );
	max-width: 56ch;
	margin: 0 auto;
	line-height: 1.7;
}

/* Calculator card */

.pp-calc__card {
	background: #fff;
	border: 1px solid var( --pc-line );
	border-radius: 18px;
	box-shadow: 0 4px 20px rgba( 19, 32, 64, 0.06 );
	padding: 28px;
	margin: 0 0 32px;
}

.pp-calc__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.pp-calc__field {
	margin: 0 0 26px;
}

.pp-calc__field:last-child {
	margin-bottom: 0;
}

.pp-calc__field--with-image {
	display: block;
}

.pp-calc__field-image {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
	margin: 0 0 8px;
}

.pp-calc__field-body {
	width: 100%;
}

.pp-calc__label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var( --pc-accent );
	margin: 0 0 12px;
}

.pp-calc__chips {
	display: grid;
	grid-template-columns: repeat( var( --cols, 4 ), 1fr );
	gap: 10px;
}

.pp-calc__chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding: 10px 8px;
	border: 1.5px solid var( --pc-line );
	border-radius: 10px;
	background: #fff;
	color: var( --pc-ink );
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	font-family: inherit;
	min-height: 52px;
	text-align: center;
}

.pp-calc__chip--syringe {
	min-height: 108px;
	justify-content: flex-end;
}

.pp-calc__chip:hover {
	border-color: var( --pc-accent-2 );
}

.pp-calc__chip.is-active {
	background: var( --pc-accent );
	border-color: var( --pc-accent );
	color: #fff;
}

.pp-calc__chip svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.pp-calc__custom {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.pp-calc__custom.is-visible {
	display: flex;
}

.pp-calc__custom input {
	width: 110px;
	padding: 9px 12px;
	border: 1.5px solid var( --pc-line );
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: var( --pc-ink );
}

.pp-calc__custom input:focus {
	outline: none;
	border-color: var( --pc-accent );
}

.pp-calc__custom span {
	font-size: 13px;
	color: var( --pc-muted );
}

/* Syringe chips: real product photo thumbnail + the ml value */

.pp-calc__chip--syringe img {
	height: 64px;
	width: auto;
	object-fit: contain;
	pointer-events: none;
}

/* Selected-syringe hero visual next to the result */

.pp-calc__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 22px;
}

.pp-calc__visual img {
	height: 180px;
	width: auto;
	object-fit: contain;
}

/* Result panel */

.pp-calc__result {
	border-top: 1px solid var( --pc-line );
	margin-top: 28px;
	padding-top: 28px;
}

.pp-calc__result-line {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 20px;
}

.pp-calc__result-line strong {
	color: var( --pc-accent );
	font-size: 22px;
}

.pp-calc__scale-wrap {
	position: relative;
	direction: ltr; /* a measurement scale reads low-to-high left-to-right
	                   regardless of page direction, same as a real syringe */
	padding: 10px 6px 28px;
	background: var( --pc-bg-alt );
	border-radius: 12px;
}

.pp-calc__scale {
	position: relative;
	height: 36px;
	margin: 0 10px;
}

.pp-calc__scale-fill {
	position: absolute;
	top: 14px;
	left: 0;
	height: 8px;
	background: var( --pc-accent-2 );
	border-radius: 4px;
	transition: width 0.2s ease;
}

.pp-calc__scale-track {
	position: absolute;
	top: 14px;
	right: 0;
	left: 0;
	height: 8px;
	background: #e4e1d8;
	border-radius: 4px;
}

.pp-calc__scale-marker {
	position: absolute;
	top: 2px;
	width: 2px;
	height: 32px;
	background: var( --pc-accent );
	transition: left 0.2s ease;
}

.pp-calc__scale-marker::after {
	content: attr( data-value );
	position: absolute;
	top: -22px;
	transform: translateX( -50% );
	left: 0;
	font-size: 12px;
	font-weight: 700;
	color: var( --pc-accent );
	white-space: nowrap;
}

.pp-calc__scale-ticks {
	direction: ltr;
	display: flex;
	justify-content: space-between;
	margin: 0 10px;
	font-size: 11px;
	color: var( --pc-muted );
	font-variant-numeric: tabular-nums;
}

.pp-calc__doses {
	margin: 18px 0 0;
	font-size: 14px;
	color: var( --pc-muted );
}

.pp-calc__doses strong {
	color: var( --pc-ink );
}

.pp-calc__warning {
	display: none;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 16px;
	background: var( --pc-danger-bg );
	border: 1px solid #e3bdb2;
	border-radius: 10px;
	color: var( --pc-danger );
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.6;
}

.pp-calc__warning.is-visible {
	display: flex;
}

.pp-calc__warning svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

/* Safety / position statement */

.pp-calc__safety {
	display: flex;
	gap: 14px;
	background: #fdf8ee;
	border: 1px solid #e8d9b0;
	border-radius: 14px;
	padding: 20px 22px;
	margin: 0 0 44px;
}

.pp-calc__safety-icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: #b8860b;
	margin-top: 2px;
}

.pp-calc__safety h2 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #5a4a1f;
}

.pp-calc__safety p {
	font-size: 13.5px;
	line-height: 1.7;
	color: #5a4a1f;
	margin: 0;
}

/* Educational content */

.pp-calc__content {
	margin: 0 0 44px;
}

.pp-calc__content h2 {
	font-size: 22px;
	font-weight: 700;
	color: var( --pc-accent );
	margin: 36px 0 14px;
}

.pp-calc__content h2:first-child {
	margin-top: 0;
}

.pp-calc__content p {
	font-size: 15px;
	line-height: 1.8;
	color: var( --pc-muted );
	max-width: 75ch;
	margin: 0 0 12px;
}

.pp-calc__content a {
	color: var( --pc-accent );
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pp-calc__steps {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 18px;
	margin: 20px 0;
}

.pp-calc__step {
	background: #fff;
	border: 1px solid var( --pc-line );
	border-radius: 14px;
	padding: 20px;
}

.pp-calc__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var( --pc-accent );
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.pp-calc__step h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 6px;
}

.pp-calc__step p {
	font-size: 13.5px;
	color: var( --pc-muted );
	line-height: 1.6;
	margin: 0;
}

/* FAQ */

.pp-calc__faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pp-calc__faq-item {
	background: #fff;
	border: 1px solid var( --pc-line );
	border-radius: 12px;
	padding: 0 20px;
}

.pp-calc__faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 16px;
	padding: 16px 0;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var( --pc-accent );
	text-align: inherit;
	cursor: pointer;
}

.pp-calc__faq-icon {
	flex: none;
	font-size: 18px;
	color: var( --pc-accent-2 );
}

.pp-calc__faq-panel {
	display: none;
	padding: 0 0 18px;
}

.pp-calc__faq-item.is-open .pp-calc__faq-panel {
	display: block;
}

.pp-calc__faq-panel p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var( --pc-muted );
}

/* CTA */

.pp-calc__cta {
	text-align: center;
	background: linear-gradient( 135deg, #060a14 0%, var( --pc-accent ) 60%, #060a14 100% );
	border-radius: 20px;
	padding: 48px 24px;
	margin: 0 0 44px;
	color: #fff;
}

.pp-calc__cta h2 {
	font-size: clamp( 22px, 3vw, 30px );
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
}

.pp-calc__cta p {
	font-size: 15px;
	color: rgba( 255, 255, 255, 0.7 );
	max-width: 50ch;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.pp-calc__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var( --pc-accent-2 );
	color: var( --pc-accent );
	font-weight: 700;
	font-size: 15px;
	padding: 14px 30px;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.pp-calc__cta-btn:hover {
	opacity: 0.9;
	transform: translateY( -1px );
	color: var( --pc-accent );
}


@media ( max-width: 900px ) {
	.pp-calc__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.pp-calc__steps {
		grid-template-columns: 1fr;
	}

	.pp-calc__card {
		padding: 22px 18px;
	}

	.pp-calc__chips {
		--cols: 3;
	}
}

@media ( max-width: 560px ) {
	.pp-calc__hero {
		padding: 32px 0 20px;
	}

	.pp-calc__chips {
		--cols: 2;
	}

	.pp-calc__chip {
		padding: 9px 8px;
		font-size: 13px;
	}

	.pp-calc__chip--syringe img {
		height: 52px;
	}

	.pp-calc__visual img {
		height: 130px;
	}

	.pp-calc__result-line {
		font-size: 16px;
	}

	.pp-calc__result-line strong {
		font-size: 19px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pp-calc__stickybar,
	.pp-calc__scale-fill,
	.pp-calc__scale-marker,
	.pp-calc__cta-btn {
		transition: none;
	}
}
