/* ==========================================================================
   pricewise.ai — home page sections 01 and 02 (inc/sections.php).
   The invoice in inc/invoice.php, in the app's own colours and type:
   system text, Inter for numbers, the printed invoice in a monospace face.
   ========================================================================== */

/* The number face (the headline chips, sections 01 and 02). inc/sections.php preloads this same file, so it downloads once. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-var.woff2') format('woff2'); }
.pw-art, .has-numbers {
	--a-ink: #1a1916;
	--a-2: rgba(26, 25, 22, 0.7);
	--a-3: rgba(26, 25, 22, 0.56);
	--a-line: rgba(26, 25, 22, 0.08);
	--a-green: #2d6a4f;
	--a-green-d: #1b4433;
	--a-ochre-d: #8f5a12;
	--a-ochre-l: #f6ead8;
	--a-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--a-num: 'Inter', var(--a-sans);
	--a-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------- 01: the picture sits above the caption, level in both panels ---------- */
.ref-work-comparison .pw-art { align-self: stretch; margin-top: auto; }
.ref-work-comparison .ref-work-caption { margin-top: 22px; }
.ref-work-comparison .ref-work-statement { margin-bottom: 30px; }

/* The old way: the printed invoice, three lines ticked, the fourth under the highlighter. */
.pw-art-before { position: relative; height: 238px; }
.pab-sheet {
	position: absolute;
	inset: 0 0 26px;
	padding: 16px 18px 0;
	overflow: hidden;
	background: linear-gradient(172deg, #fbfaf5 0%, #f3f1e8 100%);
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(26, 25, 22, 0.07), 0 18px 34px -22px rgba(26, 25, 22, 0.35);
	color: #34352f;
	font: 500 10.5px/1 var(--a-mono);
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.pab-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding-bottom: 9px; border-bottom: 1.5px solid #34352f; color: inherit; font: inherit; letter-spacing: 0.02em; white-space: nowrap; }
.pab-head b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; }
.pab-sheet ol { margin: 0; padding: 0; list-style: none; }
.pab-sheet li { position: relative; display: grid; grid-template-columns: 14px 22px 64px minmax(0, 1fr) 40px; column-gap: 8px; align-items: center; height: 22px; border-bottom: 1px dashed #d8d5ca; white-space: nowrap; }
.pab-sheet li span { overflow: hidden; text-overflow: ellipsis; }
.pab-sheet li span:nth-child(2) { text-align: right; }
.pab-sheet li span:last-child { text-align: right; }
.pab-sheet li.is-done { color: #6c6c64; }
.pab-sheet li.is-done i { width: 6px; height: 11px; margin: -3px 0 0 4px; border-right: 1.6px solid #55554e; border-bottom: 1.6px solid #55554e; transform: rotate(40deg); }
.pab-sheet li.is-now::before { content: ''; position: absolute; z-index: -1; inset: 2px -6px 2px 16px; background: #f7e39a; border-radius: 2px; transform-origin: left; }
.pab-count { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: #5f6e60; font: 500 13px/1.2 var(--a-sans); text-align: center; letter-spacing: 0; }
.pab-count b { color: var(--a-ink); font: 650 13px var(--a-num); font-variant-numeric: tabular-nums; }

/* With pricewise.ai: the review list, three increases out of the whole invoice. */
.pw-art-after { display: flex; flex-direction: column; gap: 8px; height: 238px; font-family: var(--a-sans); }
.paa-top, .pw-art-after li { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(26, 25, 22, 0.05), 0 0 0 1px var(--a-line); }
.paa-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 10px 9px 14px; color: var(--a-ink); font: 500 13px/1.2 var(--a-sans); letter-spacing: 0; }
.paa-top em, .pw-art-after li em { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--a-ochre-l); color: var(--a-ochre-d); font-style: normal; }
.paa-top em { font: 600 12px/1.2 var(--a-sans); }
.pw-art-after ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pw-art-after li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 9px 14px; }
.pw-art-after li > span { min-width: 0; }
.pw-art-after li b { display: block; overflow: hidden; color: var(--a-ink); font: 650 13.5px/1.25 var(--a-sans); letter-spacing: -0.005em; white-space: nowrap; text-overflow: ellipsis; }
.pw-art-after li small { display: block; margin-top: 2px; color: var(--a-3); font: 500 11.5px/1.25 var(--a-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-art-after li em { font: 650 12.5px/1.2 var(--a-num); font-variant-numeric: tabular-nums; }
.paa-more { margin: auto 0 0; color: var(--a-3); font: 500 12.5px/1.2 var(--a-sans); text-align: center; letter-spacing: 0; }
.paa-more b { color: #98341f; font-weight: 600; }

/* ---------- 02 without the "card" move (the arch): the numbers behind "New retail. Your margin." ---------- */
.has-numbers .pf-meta { display: block; margin-top: 3px; color: #6d8163; font: 500 12px/1.3 var(--a-num); font-variant-numeric: tabular-nums; }
.pf-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 14px 0 0; padding: 10px 14px; background: #faf9f7; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(26, 25, 22, 0.06); letter-spacing: 0; }
.pf-item b { color: var(--a-ink); font: 650 13.5px/1.25 var(--a-sans); white-space: nowrap; }
.pf-item span { flex: none; color: var(--a-ochre-d); font: 600 13px/1.25 var(--a-num); font-variant-numeric: tabular-nums; }
.pf-item s { margin-right: 3px; color: var(--a-3); font-weight: 500; }
.has-numbers .ref-flow-headline { margin-top: 22px; }
.pf-nums { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e0e7dc; }
.pf-nums p { display: flex; flex-direction: column; align-items: flex-start; margin: 0; letter-spacing: 0; }
.pf-nums small { margin-bottom: 7px; color: var(--a-3); font: 600 10.5px/1 var(--a-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.pf-nums b { color: var(--a-ink); font: 600 22px/1 var(--a-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pf-nums .pf-retail b { color: var(--a-green-d); font-size: 34px; letter-spacing: -0.03em; }
.pf-nums s { margin-top: 6px; color: var(--a-3); font: 500 12.5px/1 var(--a-num); font-variant-numeric: tabular-nums; }
.pf-odo { display: inline-flex; }

@media (max-width: 760px) {
	.pw-art-before, .pw-art-after { height: 232px; }
	.pab-sheet { padding-inline: 14px; font-size: 10px; }
	.pab-head { letter-spacing: 0; }
	.has-numbers .ref-flow-output { padding-left: 52px; }
	.pab-sheet li { grid-template-columns: 12px 20px 58px minmax(0, 1fr) 36px; column-gap: 6px; }
	.pf-nums { gap: 8px; }
	.pf-nums .pf-retail b { font-size: 30px; }
	.pf-nums b { font-size: 19px; }
}

@media (prefers-reduced-motion: no-preference) {
	.ref-work-comparison.pw-reveal-in .pab-sheet li.is-now::before { animation: pw-grow 0.7s var(--pw-ease) 0.7s both; }
	.ref-work-comparison.pw-reveal-in .pab-sheet li.is-done i { animation: pw-fade 0.2s ease both; }
	.ref-work-comparison.pw-reveal-in .pab-sheet li.is-done:nth-child(1) i { animation-delay: 0.3s; }
	.ref-work-comparison.pw-reveal-in .pab-sheet li.is-done:nth-child(2) i { animation-delay: 0.42s; }
	.ref-work-comparison.pw-reveal-in .pab-sheet li.is-done:nth-child(3) i { animation-delay: 0.54s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after > p { animation: pw-rise 0.55s var(--pw-ease) both; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li { animation: pw-rise 0.55s var(--pw-ease) both; }
	.ref-work-comparison.pw-reveal-in .pw-art-after > :nth-child(1) { animation-delay: 0.3s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(1) { animation-delay: 0.42s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(2) { animation-delay: 0.5s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(3) { animation-delay: 0.58s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after > :nth-child(3) { animation-delay: 0.7s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li em { animation: pw-pop 0.5s var(--pw-ease) both; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(1) em { animation-delay: 0.75s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(2) em { animation-delay: 0.83s; }
	.ref-work-comparison.pw-reveal-in .pw-art-after li:nth-child(3) em { animation-delay: 0.91s; }
}

/* ---------- The headline's chips: the cost that went up beside line one, the retail that follows beside line two ---------- */
.pw-hl-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	margin-left: 22px;
	padding: 8px 14px 9px;
	border-radius: 12px;
	vertical-align: middle;
	white-space: nowrap;
	font: 500 16px/18px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	letter-spacing: 0;
	text-wrap: nowrap;
	transform-origin: 0 50%;
}
.pw-hl-chip [data-t]::before { content: attr(data-t); }
.pw-hl-chip small { font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pw-hl-nums { display: inline-flex; align-items: center; gap: 7px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-variant-numeric: tabular-nums; }
.pw-hl-nums svg { width: 15px; height: 15px; flex: none; }
.pw-hl-nums s { font-weight: 400; }
.pw-hl-nums b { display: inline-flex; font-weight: 650; }
.pw-hl-nums i { font-style: normal; font-size: 13px; }
.pw-hl-chip.is-cost { background: #f6ead8; color: #8f5a12; }
.pw-hl-chip.is-cost s, .pw-hl-chip.is-cost i { color: #6f450c; }
.pw-hl-chip.is-retail { background: #e4ede7; color: #1b4433; }
.pw-hl-chip.is-retail s { opacity: 0.6; }
.pw-hl-row { display: none; }
@media (max-width: 1199px) {
	.ab-a-hero-copy h1 > .pw-hl-chip { display: none; }
	.pw-hl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
	.pw-hl-row .pw-hl-chip { margin-left: 0; font-size: 15px; line-height: 17px; }
}
@media (max-width: 760px) {
	.pw-hl-row { margin-top: 14px; }
	.pw-hl-row .pw-hl-chip { padding: 7px 11px 8px; font-size: 14px; line-height: 16px; }
	.pw-hl-row .pw-hl-chip small { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
	.pw-hl-chip { animation: pw-hl-pop 0.55s var(--pw-ease) both; }
	.pw-hl-chip.is-cost { animation-delay: 0.7s; }
	.pw-hl-chip.is-retail { animation-delay: 1.05s; }
	/* The new retail starts where the old one will sit, rolls, then steps aside as the old one appears struck. */
	.pw-hl-chip.is-retail b { animation: pw-hl-settle 0.45s var(--pw-ease) 2.2s both; }
	.pw-hl-chip.is-retail s { animation: pw-hl-in 0.4s ease 2.4s both; }
}
@keyframes pw-hl-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes pw-hl-settle { from { transform: translateX(calc(-100% - 7px)); } to { transform: none; } }
@keyframes pw-hl-in { from { opacity: 0; } to { opacity: 0.6; } }

/* ---------- Prices roll and settle (the "roll" move; markup from pricewise_site_odometer()). Each changing digit is
   a strip of whole-pixel cells resting on the new price; the animation starts it on the old one. ---------- */
.pw-odo { display: inline-block; height: var(--cell); overflow: hidden; vertical-align: top; }
.pw-odo-s { display: block; transform: translateY(calc(var(--to) * -1 * var(--cell))); }
.pw-odo-s > span { display: block; height: var(--cell); }
.pw-hl-chip { --cell: 18px; }
.pf-retail { --cell: 1em; }
@media (max-width: 1199px) { .pw-hl-row .pw-hl-chip { --cell: 17px; } }
@media (max-width: 760px) { .pw-hl-row .pw-hl-chip { --cell: 16px; } }
@keyframes pw-odo { from { transform: translateY(calc(var(--from) * -1 * var(--cell))); } }
@keyframes pw-odo-blur { 0%, 100% { filter: none; } 25% { filter: blur(0.7px); } 60% { filter: blur(0.3px); } }
/* The film's small ▲ for a cost that went up: in the headline's cost chip, and before the arch's case cost in section 02. */
.pw-hl-nums svg.pw-up { width: 9px; height: 9px; }
.pw-move-roll .pf-item span::before { content: ''; display: inline-block; width: 7px; height: 6px; margin-right: 5px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
	.pw-hl-chip .pw-odo-s { animation: pw-odo var(--dur) var(--pw-ease-settle) calc(1.45s + var(--lag)) both; }
	.pw-hl-chip .is-fast .pw-odo-s { animation-name: pw-odo, pw-odo-blur; }
	/* The new retail steps aside, and the old one appears struck, just after the roll lands (2.27 s). */
	.pw-move-roll .pw-hl-chip.is-retail b { animation-delay: 2.3s; }
	.pw-move-roll .pw-hl-chip.is-retail s { animation-delay: 2.5s; }
	.ref-margin-layout.pw-reveal-in .pf-retail .pw-odo-s { animation: pw-odo var(--dur) var(--pw-ease-settle) calc(1.5s + var(--lag)) both; }
	.ref-margin-layout.pw-reveal-in .pf-retail .is-fast .pw-odo-s { animation-name: pw-odo, pw-odo-blur; }
	/* Section 02's old retail and old margin appear struck as the new ones land (the margin counts in site.js). */
	.pw-move-roll .ref-margin-layout.pw-reveal-in :is(.pf-retail, .pf-nums > :last-child) s { animation: pw-fade 0.3s ease 2.35s both; }
}

/* ---------- The features pour in (the "pour" move): after "One price. Everything included.", one after another in
   reading order, row by row and left to right at every width (4 x 2, 2 x 4, one column). Each icon flips open, then
   its words lift in. Every feature plays the same animation, each one 45 ms after the one before, so a later feature
   is never further in than an earlier one; all eight land by 0.98 s. The panel at rest is unchanged. ---------- */
.pw-move-pour .pw-feature:nth-child(2) { --o: 1; } .pw-move-pour .pw-feature:nth-child(3) { --o: 2; } .pw-move-pour .pw-feature:nth-child(4) { --o: 3; }
.pw-move-pour .pw-feature:nth-child(5) { --o: 4; } .pw-move-pour .pw-feature:nth-child(6) { --o: 5; } .pw-move-pour .pw-feature:nth-child(7) { --o: 6; } .pw-move-pour .pw-feature:nth-child(8) { --o: 7; }
@keyframes pw-flip { from { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pw-lift { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@media (prefers-reduced-motion: no-preference) {
	.pw-move-pour .pw-feature-grid.pw-reveal-in > .pw-feature { animation: none; }
	.pw-move-pour .pw-feature-grid.pw-reveal-in > .pw-feature::before { transform-origin: 50% 50%; animation: pw-flip 0.26s var(--pw-ease) calc(0.2s + var(--o, 0) * 45ms) both; }
	.pw-move-pour .pw-feature-grid.pw-reveal-in > .pw-feature > * { animation: pw-lift 0.4s var(--pw-ease) calc(0.26s + var(--o, 0) * 45ms) both; }
}

/* ==========================================================================
   02 "Keep your margins", move "card": the film's math card for DK BRWN SUGAR
   2 LB. The markup is the card at rest (new retail $3.49 at 38.1%, sent to
   POS, the tape); site.js plays the film's beats on it once, in view.
   ========================================================================== */
.m2 {
	--m2-ink: #1a1916;
	--m2-3: #6b6a66;                 /* labels, "was", struck: 5.4:1 on white */
	--m2-line: rgba(26, 25, 22, 0.09);
	--m2-green-d: #1b4433;
	--m2-green-l: #e4ede7;
	--m2-ochre-d: #8f5a12;           /* a cost went up, the margin fell */
	--m2-ochre-l: #f6ead8;
	--m2-field: #faf9f7;             /* the film's stage */
	--m2-paper: #fffdf9;             /* the tape */
	--m2-num: 'Inter', Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--m2-lift: 0 24px 48px -24px rgba(26, 25, 22, 0.16);   /* the film panel's long soft shadow */
}

/* ---------- Layout: the words 5, the card 7; on phones the card follows the headline ---------- */
.ref-margin-layout.m2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.m2 .ref-margin-cause strong { display: flex; width: fit-content; margin-top: 2px; color: var(--m2-ochre-d); }   /* the result, on its own line, in the card's ochre */

/* ---------- The stage: one frame of the film, plain ---------- */
.m2-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: clamp(28px, 4vw, 56px) clamp(20px, 3.4vw, 48px) clamp(22px, 2.6vw, 34px);
	border-radius: var(--pw-r-panel);
	background: var(--m2-field);
	box-shadow: var(--pw-ring), var(--pw-shadow-panel);
	font-family: Figtree, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--m2-ink);
	letter-spacing: 0;
}
.m2-stage :where(p, dl, dd, figcaption) { margin: 0; color: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; }

/* ---------- The card ---------- */
.m2-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	padding: 26px 28px 24px;
	background: #fff;
	border-radius: var(--pw-r-card);
	box-shadow: var(--pw-ring-card), var(--pw-shadow-card), var(--m2-lift);
	container: m2card / inline-size;
}
.m2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m2-name { min-width: 0; font: 600 18px/24px Figtree, sans-serif; letter-spacing: 0.01em; }
.m2-name small { display: block; margin-top: 2px; color: var(--m2-3); font: 500 13px/18px var(--m2-num); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.m2-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px 0 10px;
	border-radius: 999px;
	background: var(--m2-ochre-l);
	color: var(--m2-ochre-d);
	font: 600 14px/30px Figtree, sans-serif;
	white-space: nowrap;
	transform-origin: 100% 50%;
}
.m2-up { width: 9px; height: 9px; margin-right: 7px; fill: currentColor; }

.m2-retail { margin-top: 14px; text-align: right; }
.m2-lbl, .m2-trio dt { color: var(--m2-3); font: 600 11.5px/14px Figtree, sans-serif; letter-spacing: 0.07em; text-transform: uppercase; }
.m2-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; margin-top: 2px; }
.m2-old { color: var(--m2-3); font: 500 21px/1 var(--m2-num); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }

/* The numbers: Inter, tabular, one cell high (--c), so a rolling digit and a resting one sit on the same line. */
.m2-n { --c: 1.15em; position: relative; display: inline-block; font-family: var(--m2-num); font-weight: 600; line-height: var(--c); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.m2-big { font-size: 64px; letter-spacing: -0.035em; color: var(--m2-green-d); }
.m2-v > i { display: inline-block; height: var(--c); font-style: normal; vertical-align: top; }
.m2-v > .m2-col { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent); }
.m2-v > .m2-col > i { display: block; font-style: normal; }
.m2-v > .m2-col > i > i { display: block; height: var(--c); font-style: normal; }

.m2-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--m2-line); }
.m2-trio dd { margin-top: 6px; }
.m2-trio .m2-n { display: block; font-size: 30px; letter-spacing: -0.02em; color: var(--m2-green-d); }
.m2-trio .m2-och { color: var(--m2-ochre-d); }
.m2-was { display: block; margin-top: 2px; color: var(--m2-3); font: 500 14px/20px var(--m2-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m2-was-m { visibility: hidden; }   /* "was 35.7%" shows only while the margin is down, as in the film */

/* Approve, then Sent to POS. At rest it is a status, not a button: nothing here can be focused or pressed. */
.m2-go { position: relative; height: 44px; margin-top: 22px; }
.m2-go > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--pw-r-detail); font: 600 15px/1 Figtree, sans-serif; white-space: nowrap; }
.m2-go-a { z-index: 1; background: var(--m2-green-d); color: #fff; opacity: 0; }
.m2-go-b { background: var(--m2-green-l); color: var(--m2-green-d); }
.m2-go-b svg { width: 18px; height: 18px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- The promise, as 01's panels end: one quiet line at the foot of the stage ---------- */
.m2-cap { align-self: stretch; margin-top: clamp(22px, 2.6vw, 30px); color: #5f6e60; font-size: 14px; line-height: 1.5; text-align: center; text-wrap: balance; }
.m2-cap strong { color: #4c6949; font-weight: 600; }

/* ---------- A narrow card (a tablet column, or a phone): the chip goes under the name ---------- */
@container m2card (max-width: 420px) {
	.m2-head { flex-direction: column; gap: 10px; }
	.m2-chip { transform-origin: 0 50%; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.m2-card { padding: 22px 22px 20px; }
	.m2-big { font-size: 56px; }
	.m2-trio .m2-n { font-size: 26px; }
}

/* ---------- Up to 800 px (phones, an upright tablet): headline, the card, then the words ---------- */
@media (max-width: 800px) {
	.ref-margin-layout.m2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.m2 .ref-margin-copy { display: contents; }
	.m2 .ref-margin-copy h2 { order: 1; margin-bottom: 24px; }
	.m2 > .m2-stage { order: 2; margin-bottom: 30px; }   /* beats WP's :last-child margin reset */
	.m2 .ref-margin-copy > p { order: 3; }
	.m2 .ref-margin-cause { margin-block: 24px; }
}

/* ---------- Phone: the card's sizes ---------- */
@media (max-width: 760px) {
	.m2 > .m2-stage { padding: 20px 12px 18px; }
	.m2-card { padding: 18px 16px 16px; }
	.m2-name { font-size: 16px; line-height: 21px; }
	.m2-name small { font-size: 12px; line-height: 16px; }
	.m2-chip { height: 26px; padding: 0 10px 0 9px; font-size: 13px; line-height: 26px; }
	.m2-up { width: 8px; height: 8px; margin-right: 6px; }
	.m2-retail { margin-top: 6px; }
	.m2-big { font-size: 50px; }
	.m2-old { font-size: 18px; }
	.m2-price { gap: 10px; }
	.m2-lbl, .m2-trio dt { font-size: 10.5px; letter-spacing: 0.06em; }
	.m2-trio { gap: 10px; margin-top: 14px; padding-top: 14px; }
	.m2-trio .m2-n { font-size: 22px; }
	.m2-was { font-size: 12.5px; line-height: 18px; }
	.m2-go { height: 42px; margin-top: 18px; }
	.m2-go > span { font-size: 14.5px; }
	.m2-cap { margin-top: 18px; padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 360px) {
	.m2-big { font-size: 44px; }
	.m2-trio .m2-n { font-size: 20px; }
}

/* The site's section entrance (site.js adds .pw-reveal-in): the stage fades in beside the rising words. Up to 800 px,
   where the words' box is display: contents, each line rises on its own. */
@media (prefers-reduced-motion: no-preference) {
	.ref-margin-layout.m2.pw-reveal-in .m2-stage { animation: pw-fade 0.5s ease both; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
	.ref-margin-layout.m2.pw-reveal-in .ref-margin-copy > * { animation: pw-rise 0.7s var(--pw-ease) both; }
}
@media print {
	.m2-card { box-shadow: 0 0 0 1px #d9d6ce; }
}
