/* Page Sections — Mockup feature (browser/phone framed screenshot + copy + floating stickers) */

.ps-mockup__inner {
	display: grid;
	grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

/* Image position swap — flip the order in-grid. */
.ps-mockup--right .ps-mockup__media { order: 2; }
.ps-mockup--right .ps-mockup__copy  { order: 1; }

/* ---------------------------------------------------------------------------
 * Media + device frames
 * --------------------------------------------------------------------------- */

.ps-mockup__media {
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* The device wrapper is the positioning context for stickers. */
.ps-mockup__device {
	position: relative;
	width: 100%;
	max-width: 100%;
}

/* Browser frame */
.ps-mockup--browser .ps-mockup__device {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: visible;
}

.ps-mockup__chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 14px;
	background: var(--grey-100);
	border-top-left-radius: var(--radius-lg);
	border-top-right-radius: var(--radius-lg);
	border-bottom: 1px solid var(--grey-200);
}

.ps-mockup__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	display: inline-block;
	flex: 0 0 auto;
}

.ps-mockup__dot--red    { background: #ff5f57; }
.ps-mockup__dot--amber  { background: #febc2e; }
.ps-mockup__dot--green  { background: #28c840; }

.ps-mockup__address {
	margin-left: 14px;
	flex: 1 1 auto;
	background: var(--grey-200);
	color: var(--grey-700);
	font-family: var(--font);
	font-size: 0.72rem;
	line-height: 1;
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 60%;
	text-align: center;
}

.ps-mockup--browser .ps-mockup__screen {
	border-bottom-left-radius: var(--radius-lg);
	border-bottom-right-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--cream);
	aspect-ratio: 16 / 10;
	display: block;
}

.ps-mockup--browser .ps-mockup__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Phone frame */
.ps-mockup--phone .ps-mockup__device {
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	background: var(--plum);
	border-radius: 32px;
	padding: 14px;
	box-shadow: var(--shadow-card);
	border: 6px solid var(--plum);
	box-sizing: border-box;
}

.ps-mockup__notch {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 16px;
	background: #000;
	border-radius: 0 0 12px 12px;
	z-index: 2;
}

.ps-mockup--phone .ps-mockup__screen {
	overflow: hidden;
	border-radius: 26px;
	background: var(--cream);
	aspect-ratio: 9 / 18;
	display: block;
}

.ps-mockup--phone .ps-mockup__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------------------
 * Floating stickers
 * --------------------------------------------------------------------------- */

.ps-mockup__sticker {
	position: absolute;
	z-index: 3;
	width: clamp(110px, 18vw, 180px);
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--shadow-card);
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font);
}

.ps-mockup__sticker-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	color: var(--teal);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ps-mockup__sticker-svg {
	width: 24px;
	height: 24px;
}

.ps-mockup__sticker-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ps-mockup__sticker-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--teal);
	line-height: 1.2;
}

.ps-mockup__sticker-subtitle {
	font-size: 0.75rem;
	color: var(--grey-700);
	line-height: 1.3;
	margin-top: 2px;
}

/* Sticker positions — each peeks out of the device frame. */
.ps-mockup__sticker--top-left      { top: -18px;  left: -24px; }
.ps-mockup__sticker--top-right     { top: -18px;  right: -24px; }
.ps-mockup__sticker--center-left   { top: 50%;    left: -32px;  transform: translateY(-50%); }
.ps-mockup__sticker--center-right  { top: 50%;    right: -32px; transform: translateY(-50%); }
.ps-mockup__sticker--bottom-left   { bottom: -18px; left: -24px; }
.ps-mockup__sticker--bottom-right  { bottom: -18px; right: -24px; }

/* ---------------------------------------------------------------------------
 * Copy
 * --------------------------------------------------------------------------- */

.ps-mockup__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ps-mockup__eyebrow {
	margin: 0;
	color: var(--red);
	font-family: var(--font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ps-mockup__heading {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	line-height: 1.15;
	color: var(--teal);
	letter-spacing: 0.005em;
}

.ps-mockup__text {
	color: var(--grey-700);
	font-size: 1rem;
	line-height: 1.6;
}

.ps-mockup__text > :first-child { margin-top: 0; }
.ps-mockup__text > :last-child  { margin-bottom: 0; }

.ps-mockup__text p { margin: 0 0 0.9em; }

/* Bullets */
.ps-mockup__bullets {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ps-mockup__bullet {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--teal);
}

.ps-mockup__check {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(48, 166, 153, 0.15);
	color: var(--green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.ps-mockup__check-svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}

.ps-mockup__bullet-text { flex: 1 1 auto; }

.ps-mockup__cta { margin-top: 6px; }

/* ---------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.ps-mockup__inner { gap: 36px; }
	.ps-mockup__sticker { width: clamp(100px, 20vw, 150px); padding: 10px 12px; }
	.ps-mockup__sticker-title { font-size: 0.85rem; }
	.ps-mockup__sticker-subtitle { font-size: 0.72rem; }

	/* Container is flush with the viewport here (20px side padding) — cap the
	   outboard offsets so stickers don't get clipped at the screen edge. */
	.ps-mockup__sticker--top-left,
	.ps-mockup__sticker--bottom-left   { left: -16px; }
	.ps-mockup__sticker--top-right,
	.ps-mockup__sticker--bottom-right  { right: -16px; }
	.ps-mockup__sticker--center-left   { left: -20px; }
	.ps-mockup__sticker--center-right  { right: -20px; }
}

@media (max-width: 860px) {
	.ps-mockup__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Image first, regardless of left/right setting. */
	.ps-mockup__media,
	.ps-mockup--right .ps-mockup__media { order: 1; }
	.ps-mockup__copy,
	.ps-mockup--right .ps-mockup__copy  { order: 2; }

	.ps-mockup--phone .ps-mockup__device { max-width: min(280px, 70vw); }

	.ps-mockup__sticker--top-left,
	.ps-mockup__sticker--top-right { top: -14px; }
	.ps-mockup__sticker--top-left      { left: 4%; }
	.ps-mockup__sticker--top-right     { right: 4%; }
	.ps-mockup__sticker--center-left   { left: -12px; }
	.ps-mockup__sticker--center-right  { right: -12px; }
}

@media (max-width: 767px) {
	/* Hide bottom stickers on smaller screens to keep the layout breathable. */
	.ps-mockup__sticker--bottom-left,
	.ps-mockup__sticker--bottom-right { display: none; }
}

@media (max-width: 479px) {
	.ps-mockup__inner { gap: 24px; }
	.ps-mockup__copy { gap: 14px; }
	.ps-mockup__heading { font-size: clamp(1.5rem, 7vw, 1.9rem); }
	.ps-mockup__bullet { font-size: 0.95rem; }

	.ps-mockup__sticker {
		width: clamp(90px, 36vw, 130px);
		padding: 8px 10px;
	}
	.ps-mockup__sticker-icon { flex-basis: 22px; width: 22px; height: 22px; }
	.ps-mockup__sticker-svg  { width: 18px; height: 18px; }

	/* On the tightest screens, only allow the top stickers to remain. */
	.ps-mockup__sticker--center-left,
	.ps-mockup__sticker--center-right { display: none; }

	.ps-mockup__address { display: none; }
}

/* Desktop — taller browser chrome, larger phone frame, richer stickers. */
@media (min-width: 1024px) {
	.ps-mockup__copy { gap: 20px; }
	.ps-mockup__heading { font-size: clamp(1.85rem, 2.4vw, 2.2rem); }
	.ps-mockup__text { font-size: 1.02rem; }
	.ps-mockup__bullet { font-size: 0.98rem; }

	.ps-mockup__chrome { height: 36px; padding: 0 16px; gap: 10px; }
	.ps-mockup__dot { width: 11px; height: 11px; }
	.ps-mockup__address { font-size: .76rem; padding: 6px 12px; }

	.ps-mockup--phone .ps-mockup__device { max-width: 260px; }

	.ps-mockup__sticker {
		width: clamp(130px, 12vw, 170px);
		padding: 12px 14px;
	}
	.ps-mockup__sticker-icon { flex-basis: 28px; width: 28px; height: 28px; }
	.ps-mockup__sticker-svg  { width: 22px; height: 22px; }
	.ps-mockup__sticker-title { font-size: .9rem; }
	.ps-mockup__sticker-subtitle { font-size: .76rem; }

	.ps-mockup__sticker--top-left,
	.ps-mockup__sticker--top-right { top: -18px; }
	/* Keep outboard offsets within the 20px container padding until the
	   viewport has spare margin (>=1280) — avoids edge clipping at 1024-1240. */
	.ps-mockup__sticker--top-left { left: -20px; }
	.ps-mockup__sticker--top-right { right: -20px; }
	.ps-mockup__sticker--center-left { left: -20px; }
	.ps-mockup__sticker--center-right { right: -20px; }
	.ps-mockup__sticker--bottom-left,
	.ps-mockup__sticker--bottom-right { bottom: -18px; }
	.ps-mockup__sticker--bottom-left { left: -20px; }
	.ps-mockup__sticker--bottom-right { right: -20px; }
}

@media (min-width: 1280px) {
	.ps-mockup__inner { gap: 60px; }
	.ps-mockup__heading { font-size: clamp(2rem, 2.4vw, 2.4rem); }
	.ps-mockup--phone .ps-mockup__device { max-width: 280px; }
	.ps-mockup__sticker { width: clamp(140px, 11vw, 180px); }

	/* Free margin outside the container from here up — restore the full peek. */
	.ps-mockup__sticker--top-left,
	.ps-mockup__sticker--bottom-left   { left: -24px; }
	.ps-mockup__sticker--top-right,
	.ps-mockup__sticker--bottom-right  { right: -24px; }
	.ps-mockup__sticker--center-left   { left: -30px; }
	.ps-mockup__sticker--center-right  { right: -30px; }
}
