/* =====================================================================
   Live design previews ([wt_design_preview], [wt_design_frame]).
   Drawn on a 1440px canvas, like the Figma frames, and scaled to the box:
   --u is one Figma pixel. Colours come from --pv-* variables on .wt-pv.
   ===================================================================== */

.wt-pv {
	container-type: inline-size;
	position: relative;
	width: 100%;
	aspect-ratio: 400 / 260;
	overflow: hidden;
	background: var(--pv-bg);
	text-align: left;
}

.wt-pv *,
.wt-pv *::before,
.wt-pv *::after { box-sizing: border-box; }

body .wt-pv .pv-canvas {
	--u: calc(100cqw / 1440);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	font-family: var(--pv-fb);
	font-weight: 400;
	font-size: calc(15 * var(--u));
	line-height: 1.5;
	color: var(--pv-text);
	pointer-events: none;
	user-select: none;
}

.wt-pv span { display: block; }
.wt-pv img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- Fonts per style ---------- */

.wt-pv-s-calm { --pv-fh: 'Fraunces', Georgia, serif; --pv-fb: 'DM Sans', Helvetica, Arial, sans-serif; --pv-hw: 400; --pv-title: 60; }
.wt-pv-s-warm { --pv-fh: 'Lora', Georgia, serif; --pv-fb: 'Nunito Sans', Helvetica, Arial, sans-serif; --pv-hw: 400; --pv-title: 56; }
.wt-pv-s-modern { --pv-fh: 'Syne', Helvetica, Arial, sans-serif; --pv-fb: 'Outfit', Helvetica, Arial, sans-serif; --pv-hw: 700; --pv-title: 72; }
.wt-pv-s-clinical { --pv-fh: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif; --pv-fb: 'Figtree', Helvetica, Arial, sans-serif; --pv-hw: 700; --pv-title: 52; }
.wt-pv-s-luxury { --pv-fh: 'Cormorant Garamond', Georgia, serif; --pv-fb: 'Jost', Helvetica, Arial, sans-serif; --pv-hw: 500; --pv-title: 68; }

/* Font style picked in "Try your colours" (wins over the design's own fonts). */
.wt-pv.wt-pv-f-serif { --pv-fh: 'Lora', Georgia, serif; --pv-fb: 'Nunito Sans', Helvetica, Arial, sans-serif; --pv-hw: 400; }
.wt-pv.wt-pv-f-sans { --pv-fh: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif; --pv-fb: 'Figtree', Helvetica, Arial, sans-serif; --pv-hw: 700; }
.wt-pv.wt-pv-f-rounded { --pv-fh: 'Nunito', Helvetica, Arial, sans-serif; --pv-fb: 'Nunito Sans', Helvetica, Arial, sans-serif; --pv-hw: 700; }

/* ---------- Corners per style ---------- */

.wt-pv-s-calm { --pv-rb: 999; --pv-rc: 20; }
.wt-pv-s-warm { --pv-rb: 999; --pv-rc: 28; }
.wt-pv-s-modern { --pv-rb: 0; --pv-rc: 0; }
.wt-pv-s-clinical { --pv-rb: 8; --pv-rc: 12; }
.wt-pv-s-luxury { --pv-rb: 0; --pv-rc: 2; }

/* ---------- Header ---------- */

.wt-pv .pv-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: calc(100 * var(--u));
	padding: 0 calc(120 * var(--u));
}
.wt-pv-s-luxury .pv-header { height: calc(104 * var(--u)); }
.wt-pv .pv-logo { display: flex; align-items: center; gap: calc(12 * var(--u)); }
.wt-pv .pv-mark { position: relative; flex: 0 0 auto; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: var(--pv-accent); }
.wt-pv .pv-mark::after { content: ''; position: absolute; top: calc(10 * var(--u)); left: calc(10 * var(--u)); width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: var(--pv-primary); }
.wt-pv .pv-mark.has-logo { width: auto; height: auto; border-radius: 0; background: none; }
.wt-pv .pv-mark.has-logo img { width: auto; height: auto; max-width: calc(160 * var(--u)); max-height: calc(52 * var(--u)); min-height: calc(34 * var(--u)); object-fit: contain; }
.wt-pv .pv-mark.has-logo::after { display: none; }
.wt-pv .pv-name { font-family: var(--pv-fh); font-weight: var(--pv-hw); font-size: calc(24 * var(--u)); line-height: 1.25; letter-spacing: -0.005em; white-space: nowrap; }
.wt-pv-s-clinical .pv-name { font-size: calc(22 * var(--u)); }
.wt-pv-s-luxury .pv-name { font-size: calc(28 * var(--u)); }
.wt-pv .pv-sub { font-size: calc(12 * var(--u)); line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-muted); white-space: nowrap; }
.wt-pv .pv-nav { display: flex; gap: calc(36 * var(--u)); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.wt-pv .pv-burger { display: none; }

.wt-pv .pv-btn {
	padding: calc(15 * var(--u)) calc(28 * var(--u));
	border-radius: calc(var(--pv-rb) * var(--u));
	font-weight: 600;
	font-size: calc(15 * var(--u));
	line-height: calc(18 * var(--u));
	text-align: center;
	white-space: nowrap;
}
.wt-pv .pv-btn-main { background: var(--pv-primary); color: var(--pv-on-primary); }
.wt-pv .pv-btn-ghost { position: relative; border: 0; color: var(--pv-text); }
.wt-pv .pv-btn-ghost::before { content: ''; position: absolute; inset: 0; border: max(0.5px, calc(1 * var(--u))) solid currentColor; border-radius: inherit; }
.wt-pv-s-calm .pv-btn-ghost::before { opacity: 0.25; }

/* ---------- Hero ---------- */

.wt-pv .pv-hero { position: relative; display: flex; align-items: center; gap: calc(72 * var(--u)); padding: calc(48 * var(--u)) calc(120 * var(--u)) calc(120 * var(--u)); }
.wt-pv-s-clinical .pv-hero { padding-bottom: calc(104 * var(--u)); background: var(--pv-surface); }
.wt-pv-l-left .pv-hero { flex-direction: row-reverse; padding-bottom: calc(128 * var(--u)); }

.wt-pv .pv-text { position: relative; display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: calc(28 * var(--u)); width: calc(592 * var(--u)); }
.wt-pv .pv-eyebrow {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--u));
	padding: calc(8 * var(--u)) calc(14 * var(--u));
	border-radius: calc(var(--pv-rb) * var(--u));
	background: var(--pv-soft);
	font-weight: 600;
	font-size: calc(12 * var(--u));
	line-height: calc(17 * var(--u));
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pv-primary);
}
.wt-pv .pv-eyebrow::before { content: ''; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--pv-primary); }
.wt-pv .pv-title { align-self: stretch; font-family: var(--pv-fh); font-weight: var(--pv-hw); font-size: calc(var(--pv-title) * var(--u)); line-height: 1.08; letter-spacing: -0.015em; }
.wt-pv .pv-body { align-self: stretch; font-size: calc(19 * var(--u)); line-height: 1.6; color: var(--pv-muted); }
.wt-pv .pv-btns { display: flex; gap: calc(14 * var(--u)); }
.wt-pv .pv-trust { display: flex; gap: calc(24 * var(--u)); }
.wt-pv .pv-trust-item { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.5; white-space: nowrap; color: var(--pv-muted); }
.wt-pv .pv-trust-item::before { content: ''; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--pv-primary); }

.wt-pv .pv-photo { position: relative; flex: 0 0 auto; width: calc(536 * var(--u)); height: calc(620 * var(--u)); }
.wt-pv .pv-photo img { border-radius: calc(var(--pv-rc) * var(--u)); }
.wt-pv-s-calm .pv-photo img { border-radius: calc(24 * var(--u)); }
.wt-pv-s-warm .pv-photo img { border-radius: calc(268 * var(--u)) calc(268 * var(--u)) calc(28 * var(--u)) calc(28 * var(--u)); }

.wt-pv .pv-float {
	position: absolute;
	left: calc(24 * var(--u));
	bottom: calc(24 * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(4 * var(--u));
	padding: calc(18 * var(--u)) calc(22 * var(--u));
	border-radius: calc(var(--pv-rc) * var(--u));
	background: var(--pv-surface);
	box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, 0.14);
}
.wt-pv .pv-float-title { font-weight: 600; font-size: calc(14 * var(--u)); line-height: 1.5; white-space: nowrap; }
.wt-pv .pv-float-body { font-size: calc(14 * var(--u)); line-height: 1.5; white-space: nowrap; color: var(--pv-muted); }

/* Modern bold: photo behind the words */
.wt-pv-l-cover .pv-hero { min-height: calc(802 * var(--u)); padding-top: calc(170 * var(--u)); padding-bottom: calc(170 * var(--u)); }
.wt-pv .pv-bg { position: absolute; inset: 0; }
.wt-pv .pv-overlay { position: absolute; inset: 0; background: var(--pv-dark); opacity: 0.62; }
.wt-pv-l-cover .pv-text { width: calc(780 * var(--u)); }
.wt-pv-l-cover .pv-body { align-self: flex-start; width: calc(620 * var(--u)); }
.wt-pv-l-cover .pv-title,
.wt-pv-l-cover .pv-body,
.wt-pv-l-cover .pv-trust-item,
.wt-pv-l-cover .pv-btn-ghost { color: var(--pv-on-dark); }

/* Luxury: centred words, wide photo below */
.wt-pv-l-center .pv-hero { flex-direction: column; gap: calc(64 * var(--u)); padding-top: calc(96 * var(--u)); padding-bottom: calc(136 * var(--u)); }
.wt-pv-l-center .pv-text { align-items: center; width: calc(940 * var(--u)); text-align: center; }
.wt-pv-l-center .pv-body { align-self: center; width: calc(680 * var(--u)); }
.wt-pv-l-center .pv-photo { width: calc(1200 * var(--u)); height: calc(560 * var(--u)); }
.wt-pv-l-center .pv-float { left: calc(32 * var(--u)); bottom: calc(32 * var(--u)); }

/* ---------- Strip of topics ---------- */

.wt-pv .pv-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(12 * var(--u));
	padding: calc(28 * var(--u)) calc(120 * var(--u));
	border-top: max(0.5px, calc(1 * var(--u))) solid var(--pv-line);
	border-bottom: max(0.5px, calc(1 * var(--u))) solid var(--pv-line);
	background: var(--pv-surface);
}
.wt-pv .pv-label { font-size: calc(12 * var(--u)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-muted); white-space: nowrap; }
.wt-pv .pv-chip { padding: calc(9 * var(--u)) calc(16 * var(--u)); border: max(0.5px, calc(1 * var(--u))) solid var(--pv-line); border-radius: calc(var(--pv-rb) * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(21 * var(--u)); white-space: nowrap; }

/* ---------- Phone view (390px canvas) ---------- */

.wt-pv.is-mobile { aspect-ratio: 390 / 760; }
body .wt-pv.is-mobile .pv-canvas { --u: calc(100cqw / 390); }
.wt-pv.is-mobile .pv-header { height: calc(72 * var(--u)); padding: 0 calc(22 * var(--u)); }
.wt-pv.is-mobile .pv-nav,
.wt-pv.is-mobile .pv-cta { display: none; }
.wt-pv.is-mobile .pv-burger { display: block; width: calc(24 * var(--u)); height: calc(14 * var(--u)); border-top: calc(2 * var(--u)) solid var(--pv-text); border-bottom: calc(2 * var(--u)) solid var(--pv-text); }
.wt-pv.is-mobile .pv-burger::before { content: ''; display: block; height: calc(2 * var(--u)); margin-top: calc(4 * var(--u)); background: var(--pv-text); }
.wt-pv.is-mobile .pv-hero { flex-direction: column; gap: calc(28 * var(--u)); min-height: 0; padding: calc(28 * var(--u)) calc(22 * var(--u)) calc(40 * var(--u)); }
.wt-pv.is-mobile .pv-text { align-items: flex-start; gap: calc(18 * var(--u)); width: 100%; text-align: left; }
.wt-pv.is-mobile .pv-eyebrow { font-size: calc(9.5 * var(--u)); }
.wt-pv.is-mobile .pv-title { font-size: calc(var(--pv-title) * 0.6 * var(--u)); }
.wt-pv.is-mobile .pv-body { align-self: stretch; width: auto; font-size: calc(15 * var(--u)); }
.wt-pv.is-mobile .pv-btns { flex-direction: column; align-self: stretch; gap: calc(10 * var(--u)); }
.wt-pv.is-mobile .pv-trust { flex-direction: column; gap: calc(6 * var(--u)); }
.wt-pv.is-mobile .pv-photo { width: 100%; height: calc(340 * var(--u)); }
.wt-pv.is-mobile.wt-pv-s-warm .pv-photo img { border-radius: calc(173 * var(--u)) calc(173 * var(--u)) calc(28 * var(--u)) calc(28 * var(--u)); }
.wt-pv.is-mobile .pv-float { left: calc(14 * var(--u)); bottom: calc(14 * var(--u)); right: calc(14 * var(--u)); }
.wt-pv.is-mobile .pv-float-title,
.wt-pv.is-mobile .pv-float-body { white-space: normal; }
.wt-pv.is-mobile.wt-pv-l-cover .pv-hero { padding-top: calc(64 * var(--u)); padding-bottom: calc(64 * var(--u)); }
.wt-pv.is-mobile .pv-strip { padding: calc(20 * var(--u)) calc(22 * var(--u)); gap: calc(8 * var(--u)); }
.wt-pv.is-mobile .pv-label { width: 100%; }

/* =====================================================================
   Homepage hero studio ([wt_design_studio]): a few live designs in a
   browser window, with real colour controls.
   ===================================================================== */

.wt-studio { position: relative; font-family: var(--wt-body); }
.wt-studio .wt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Design tabs */
.wt-studio-tabs {
	display: flex;
	gap: 4px;
	width: max-content;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--wt-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 6px 18px rgba(31, 26, 59, 0.06);
	scrollbar-width: none;
}
.wt-studio-tabs::-webkit-scrollbar { display: none; }
body .wt-studio-tabs button {
	flex: 0 0 auto;
	cursor: pointer;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-family: var(--wt-head);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	color: var(--wt-muted);
	transition: background-color 0.2s ease, color 0.2s ease;
}
body .wt-studio-tabs button:hover { color: var(--wt-primary); }
body .wt-studio-tabs button.is-active { background: var(--wt-primary); color: #fff; }
body .wt-studio-tabs button:focus-visible { outline: 2px solid var(--wt-primary); outline-offset: 2px; }

/* Browser window */
.wt-studio-stage { position: relative; }
.wt-studio-stage::before {
	content: '';
	position: absolute;
	top: 22px;
	right: -22px;
	bottom: -22px;
	left: 22px;
	border-radius: 20px;
	background: linear-gradient(135deg, #e6e0f8 0%, #f3eefe 60%, #fbf1dc 100%);
}
.wt-studio-win {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wt-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 40px 80px -28px rgba(31, 26, 59, 0.35), 0 12px 28px rgba(31, 26, 59, 0.06);
}
.wt-studio-win .wt-frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--wt-line); background: #fbfaff; }
.wt-studio-win .wt-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcd7ea; }
.wt-studio-win .wt-frame-bar span { flex: 0 1 260px; margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--wt-line); font-size: 12px; line-height: 1.5; text-align: center; color: var(--wt-muted); }
.wt-studio-view[hidden] { display: none; }

/* "Try your colours" card */
.wt-studio-card {
	position: absolute;
	right: -34px;
	bottom: -38px;
	z-index: 2;
	width: 250px;
	padding: 18px;
	border: 1px solid var(--wt-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 28px 56px -16px rgba(31, 26, 59, 0.3);
}
body .wt-studio .wt-studio-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-family: var(--wt-head); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--wt-ink); }
.wt-studio-title span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #e9f4ee; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #2f7a52; }
.wt-studio-title span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34a26a; animation: wt-pulse 1.8s ease-in-out infinite; }
@keyframes wt-pulse { 50% { opacity: 0.35; } }

.wt-studio-swatches { display: flex; gap: 10px; }
body .wt-studio-swatches button {
	cursor: pointer;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body .wt-studio-swatches button:hover { transform: scale(1.08); }
body .wt-studio-swatches button.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sw); }
body .wt-studio-swatches button:focus-visible { outline: 2px solid var(--wt-ink); outline-offset: 4px; }

.wt-studio-hex { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 12px; border: 1px solid var(--wt-line); border-radius: 10px; }
.wt-studio-hex:focus-within { border-color: var(--wt-primary); box-shadow: 0 0 0 3px var(--wt-lav); }
body .wt-studio-hex .wt-studio-text { flex: 1 1 auto; min-width: 0; padding: 4px 0; border: 0; background: transparent; font-family: var(--wt-body); font-size: 13px; line-height: 1.4; color: var(--wt-ink); outline: none; }
body .wt-studio-hex .wt-studio-text::placeholder { color: var(--wt-muted); opacity: 1; }
body .wt-studio-hex .wt-studio-color { order: 2; flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.wt-studio-hex .wt-studio-color::-webkit-color-swatch-wrapper { padding: 0; }
.wt-studio-hex .wt-studio-color::-webkit-color-swatch { border: 0; border-radius: 8px; }
.wt-studio-hex .wt-studio-color::-moz-color-swatch { border: 0; border-radius: 8px; }

/* Caption under the window */
.wt-studio-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: calc(100% - 240px); margin-top: 46px; font-size: 14px; line-height: 1.5; }
.wt-studio-meta { color: var(--wt-muted); }
body .wt-studio a.wt-studio-open { flex: 0 0 auto; font-family: var(--wt-head); font-weight: 600; color: var(--wt-primary); white-space: nowrap; }
body .wt-studio a.wt-studio-open:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
	.wt-studio { max-width: 720px; margin: 0 auto; }
}

@media (max-width: 767px) {
	.wt-studio-tabs { width: auto; margin-left: -4px; margin-right: -4px; }
	.wt-studio-stage::before { top: 14px; right: -10px; bottom: -10px; left: 14px; }
	.wt-studio-card { position: relative; right: auto; bottom: auto; width: auto; margin-top: 24px; }
	.wt-studio-cap { max-width: none; margin-top: 16px; }
	.wt-studio-meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wt-studio-title span::before { animation: none; }
}
