/* Round 4, gradients and materials (owner 2026-10-21: "Var är mina gradienter och olika färger?").
   Every scene gets its own colour set (--r4-*). The scene (hero, start card, steps) is a dark gradient that tones to light,
   sheet 1 is a dark colour gradient, sheet 2 is a light bone sheet with light cards, the closing is the hero gradient (D18) and
   "Relaterat" is dark again. Material per scene: glass on dark, light card on light, one card type per sheet (D3, D5, D13).
   Loaded after in-r2sida.css (inc/pricing.php). Only transform and opacity animate; this file adds no motion.
   Contrast: white on --r4-deep and --r4-rich is at least 4.9:1 in every scene; ink on the light cards is at least 9:1. */

.p3-sheets.scene-grafit {
	--r4-deep: #2a2825;
	--r4-rich: #6b5d4e;
	--r4-glow: #b59d7f;
	--r4-tail: #f3eee6;
	--r4-s1a: #3a3632;
	--r4-s1b: #5b5045;
	--r4-bonea: #ece6dc;
	--r4-boneb: #d9cfbf;
	--r4-carda: #fffdf9;
	--r4-cardb: #f4efe6;
	--r4-ink: #2b2825;
	--r4-soft: #5a544c;
	--r4-edge: #cdbfa9;
}

.p3-sheets.scene-espresso {
	--r4-deep: #24160e;
	--r4-rich: #7a4a2a;
	--r4-glow: #e0a56b;
	--r4-tail: #faecd9;
	--r4-s1a: #3a2515;
	--r4-s1b: #6b4326;
	--r4-bonea: #f4e6d3;
	--r4-boneb: #e6cfb0;
	--r4-carda: #fffbf5;
	--r4-cardb: #f7ecdc;
	--r4-ink: #2a1c13;
	--r4-soft: #62503f;
	--r4-edge: #dcc19c;
}

.p3-sheets.scene-oxblood {
	--r4-deep: #22191c;
	--r4-rich: #6b4347;
	--r4-glow: #c18a7c;
	--r4-tail: #f9eae3;
	--r4-s1a: #332428;
	--r4-s1b: #5d3c41;
	--r4-bonea: #f7e2d8;
	--r4-boneb: #ecc7b8;
	--r4-carda: #fefaf8;
	--r4-cardb: #f9eae3;
	--r4-ink: #281d20;
	--r4-soft: #654045;
	--r4-edge: #e1b4a4;
}

.p3-sheets.scene-vin {
	--r4-deep: #330b1e;
	--r4-rich: #7e2150;
	--r4-glow: #d7799c;
	--r4-tail: #fbe8ef;
	--r4-s1a: #4a1230;
	--r4-s1b: #701b47;
	--r4-bonea: #f5dfe8;
	--r4-boneb: #e8c1d1;
	--r4-carda: #fff9fb;
	--r4-cardb: #f9e7ee;
	--r4-ink: #371027;
	--r4-soft: #6c3a54;
	--r4-edge: #dba9bf;
}

.p3-sheets.scene-rose {
	--r4-deep: #402a30;
	--r4-rich: #985865;
	--r4-glow: #e2a9a8;
	--r4-tail: #fcefec;
	--r4-s1a: #5a3a42;
	--r4-s1b: #8a5260;
	--r4-bonea: #f7e6e4;
	--r4-boneb: #ecd0cc;
	--r4-carda: #fffaf9;
	--r4-cardb: #f8e9e6;
	--r4-ink: #3b2a2e;
	--r4-soft: #6d5156;
	--r4-edge: #e2bdb8;
}

.p3-sheets.scene-natt {
	--r4-deep: #101a33;
	--r4-rich: #284a96;
	--r4-glow: #86a6e0;
	--r4-tail: #eaf1fc;
	--r4-s1a: #1b2b52;
	--r4-s1b: #2a4378;
	--r4-bonea: #dde7f6;
	--r4-boneb: #c3d3ee;
	--r4-carda: #fcfdff;
	--r4-cardb: #eaf0fa;
	--r4-ink: #14203a;
	--r4-soft: #44506b;
	--r4-edge: #b1c3e3;
}

.p3-sheets.scene-salvia {
	--r4-deep: #14261d;
	--r4-rich: #38705a;
	--r4-glow: #9cc7aa;
	--r4-tail: #eef6ef;
	--r4-s1a: #1f3a2d;
	--r4-s1b: #2f5a45;
	--r4-bonea: #e0eee3;
	--r4-boneb: #c6dccb;
	--r4-carda: #fbfefb;
	--r4-cardb: #eaf3ec;
	--r4-ink: #172a20;
	--r4-soft: #45594c;
	--r4-edge: #b3cdb9;
}

.p3-sheets.scene-skymning {
	--r4-deep: #1b1838;
	--r4-rich: #4a3d9a;
	--r4-glow: #aaa0e2;
	--r4-tail: #efecfb;
	--r4-s1a: #2a2554;
	--r4-s1b: #42397f;
	--r4-bonea: #e6e2f7;
	--r4-boneb: #d1cbee;
	--r4-carda: #fdfcff;
	--r4-cardb: #eeebfa;
	--r4-ink: #1f1b3d;
	--r4-soft: #4f4a6e;
	--r4-edge: #bdb5e3;
}


/* The espresso scene (weight) has no footer tokens in system.css; the footer takes the deep tone like the other scenes. */
.scene-espresso {
	--surface-footer: #24160e;
	--surface-footer-card: rgba(255, 255, 255, .16);
}

/* The materials follow the scene colours. */
.p3-sheets {
	--p3-grad: linear-gradient(180deg, var(--r4-rich) 0%, color-mix(in srgb, var(--r4-rich) 58%, var(--r4-deep)) 55%, var(--r4-deep) 100%);
	--p3-tint: color-mix(in srgb, var(--r4-rich) 82%, transparent);
	--p3-pale: linear-gradient(127deg, var(--r4-carda) 2%, var(--r4-cardb) 100%);
	--p3-pale-b: linear-gradient(127deg, var(--r4-cardb) 2%, var(--r4-bonea) 100%);
	--p3-ink: var(--r4-ink);
	--p3-ink-soft: var(--r4-soft);
	--p3-sheet: var(--r4-s1b);
}

/* 1. The scene: dark top, colour in the middle, light at the bottom. Pixel stops follow the hero (about 1000 px high). */
.p3-sheets.p3-sheets .layer--scene {
	background:
		radial-gradient(ellipse 52% 620px at 80% 520px, color-mix(in srgb, var(--r4-glow) 55%, transparent), transparent 72%),
		linear-gradient(180deg, var(--r4-deep) 0, var(--r4-deep) 90px, var(--r4-rich) 700px, color-mix(in srgb, var(--r4-glow) 80%, var(--r4-rich)) 1150px, var(--r4-tail) 1560px, var(--r4-tail) 100%);
}

/* 2. Sheet 1: dark colour gradient (glass, gradient and tinted cards on dark). */
.p3-sheets.p3-sheets .p3-sheet {
	background:
		radial-gradient(ellipse 80% 520px at 8% 0, color-mix(in srgb, var(--r4-glow) 46%, transparent), transparent 74%),
		radial-gradient(ellipse 80% 620px at 100% 66%, color-mix(in srgb, var(--r4-glow) 20%, transparent), transparent 72%),
		linear-gradient(172deg, var(--r4-s1a) 0%, var(--r4-s1b) 38%, color-mix(in srgb, var(--r4-rich) 60%, var(--r4-deep)) 100%);
}

/* Rose is the lightest of the colour sets: its glow is deepened on the dark sheet so the step text keeps 4.5:1. */
.p3-sheets.scene-rose .p3-sheet {
	--r4-glow: #a8626f;
}

/* 3. Sheet 2: light bone sheet, light cards with a hairline edge and a tinted shadow. */
.p3-sheets.p3-sheets .p3-sheet[data-p3-tone="light"] {
	background: linear-gradient(172deg, var(--r4-bonea) 0%, var(--r4-boneb) 100%);
	color: var(--r4-ink);
	--p3-sheet: var(--r4-boneb);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] :is(.p3-k--pale, .p3-k--wide, .p3-in-k15__card, .p3-faq) {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r4-edge) 70%, transparent), 0 24px 40px -28px color-mix(in srgb, var(--r4-deep) 55%, transparent);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-k--wide {
	background: linear-gradient(127deg, #fff 2%, var(--r4-carda) 100%);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-ways h2 {
	color: var(--r4-ink);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-in-k15__card {
	background: var(--p3-pale);
}

/* FAQ on the light sheet: a light card, ink text, hairlines. */
.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq {
	background: var(--p3-pale);
	color: var(--r4-ink);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq :is(h2, h3, summary) {
	color: var(--r4-ink);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-in-k20__row {
	border-bottom-color: color-mix(in srgb, var(--r4-edge) 80%, transparent);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-in-k20__row button {
	color: var(--r4-ink);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-in-k20__row button:focus-visible,
.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq summary:focus-visible {
	outline-color: var(--r4-ink);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-in-k20__answer p,
.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq details p {
	color: var(--r4-soft);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq .faq__list > p:last-of-type a {
	color: var(--r4-ink);
}

.p3-sheets .p3-sheet[data-p3-tone="light"] .p3-faq .faq__list > p:last-of-type a:focus-visible {
	outline-color: var(--r4-ink);
}

/* 4. The closing: the hero gradient (D18), colour behind the picture, text on the dark side. */
.p3-sheets .p3-sheet .p3-k--grad.p3-closing {
	background:
		radial-gradient(ellipse 52% 80% at 84% 100%, color-mix(in srgb, var(--r4-glow) 80%, transparent), transparent 72%),
		linear-gradient(176deg, var(--r4-deep) 0%, var(--r4-rich) 100%);
}

/* B133: on phones the tick rows sit over the glow in the corner; at 80 % the white words fell under 4.5:1 */
@media (max-width: 760px) {
	.p3-sheets .p3-sheet .p3-k--grad.p3-closing {
		background:
			radial-gradient(ellipse 52% 80% at 84% 100%, color-mix(in srgb, var(--r4-glow) 30%, transparent), transparent 72%),
			linear-gradient(176deg, var(--r4-deep) 0%, var(--r4-rich) 100%);
	}
}

/* 5. k15 pictures: the frame is scene coloured (never an empty grey box); cut-out stickers show head and shoulders. */
.p3-sheets .p3-in-k15__card figure {
	background: linear-gradient(160deg, var(--r4-bonea), color-mix(in srgb, var(--r4-glow) 70%, var(--r4-bonea)));
}

.p3-sheets .p3-in-k15__cut img {
	object-position: 50% 6%;
}

/* 6. "Relaterat": dark again, from the colour gradient back to the deep tone. */
.p3-sheets.p3-sheets .p3-sheet.p3-in-k09 {
	background:
		radial-gradient(ellipse 60% 360px at 85% 100%, color-mix(in srgb, var(--r4-glow) 30%, transparent), transparent 70%),
		linear-gradient(172deg, var(--r4-s1b) 0%, var(--r4-deep) 100%);
}

/* Phones: the hero is taller and stacked, so the stops move. */
@media (max-width: 900px) {
	.p3-sheets.p3-sheets .layer--scene {
		background:
			radial-gradient(ellipse 90% 380px at 50% 760px, color-mix(in srgb, var(--r4-glow) 20%, transparent), transparent 72%),
			linear-gradient(180deg, var(--r4-deep) 0, var(--r4-deep) 60px, var(--r4-rich) 640px, color-mix(in srgb, var(--r4-glow) 80%, var(--r4-rich)) 1000px, var(--r4-tail) 1300px, var(--r4-tail) 100%);
	}
}

/* Espresso and oxblood were built for all-dark pages: their --muted/--lede-color are light. The breadcrumb and the hero's white
   offer card sit on light surfaces, so they take the dark pair the template's light sections use (service.css). */
.p3-sheets.scene-espresso :is(.p3-crumbs, .p3-offer) {
	--muted: #665040;
	--lede-color: #5a4433;
}

.p3-sheets.scene-oxblood :is(.p3-crumbs, .p3-offer) {
	--muted: #73464a;
	--lede-color: #56393e;
}
