/* trywpem.com main site on pixelite-base5-em: landing page, help page and shared fixes. Colors come from the theme's --color-primary (EM green). */

.trywpem {
	--tl-ink: #1d1c21;
	--tl-muted: #5b6458;
	--tl-line: #e4e8df;
	--tl-tint: #f4f6f1;
	--tl-green: var(--color-primary, #5c8f30);
	--tl-green-dark: #426d28;
	--tl-green-soft: rgba(92, 143, 48, .12);
	--tl-radius: 16px;
}

/* Header buttons from the pixelite_navbar_buttons hook */
.trywpem .trywpem-nav-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trywpem .trywpem-nav-buttons .btn-link { color: var(--tl-ink); text-decoration: none; font-weight: 600; }
.trywpem .trywpem-nav-buttons .btn-link:hover { color: var(--tl-green-dark); }
@media (max-width: 991px) {
	.trywpem .trywpem-nav-buttons { padding: 12px 0 18px; }
}

/* Nested lists in page content keep their indent; the theme resets padding on every ul inside .content. */
.trywpem .content ul ul,
.trywpem .content ol ol,
.trywpem .content ul ol,
.trywpem .content ol ul,
.trywpem .entry-content ul ul,
.trywpem .entry-content ol ol,
.trywpem .entry-content ul ol,
.trywpem .entry-content ol ul {
	padding-left: 1.5em;
	margin-top: .35em;
	margin-bottom: .35em;
}

/* ---------- Landing page ---------- */

.trial-page { color: var(--tl-ink); }
.trial-page h1, .trial-page h2, .trial-page h3 { color: var(--tl-ink); }
.trial-page a:not(.btn) { color: var(--tl-green-dark); text-underline-offset: 3px; }
.trial-page :focus-visible { outline: 3px solid var(--tl-green); outline-offset: 3px; border-radius: 4px; }

.tl-hero {
	/* The theme's header is fixed and overlays the page. */
	padding: 136px 0 80px;
	background:
		radial-gradient(ellipse at 10% 0%, rgba(92, 143, 48, .10), transparent 55%),
		linear-gradient(180deg, #fafafa 0%, var(--tl-tint) 100%);
	overflow: hidden;
}
.tl-eyebrow {
	display: inline-block;
	background: var(--tl-green-soft);
	color: var(--tl-green-dark);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
}
.tl-hero h1 {
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	margin-bottom: 20px;
	text-wrap: balance;
}
.tl-lead { font-size: 19px; line-height: 1.55; color: #3f463c; max-width: 34em; margin-bottom: 28px; }
.tl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 22px; }
.tl-textlink { font-weight: 700; }
.tl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; font-size: 15px; color: var(--tl-muted); }
.tl-facts li { display: flex; align-items: center; gap: 7px; }
.tl-facts li::before, .tl-know li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--tl-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c8f30' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Browser and phone frames around screenshots */
.tl-browser {
	position: relative;
	margin: 0;
	background: #fff;
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(29, 28, 33, .12), 0 4px 12px rgba(29, 28, 33, .06);
}
.tl-browser img { display: block; width: 100%; height: auto; }
.tl-browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	background: #f3f4f1;
	border-bottom: 1px solid var(--tl-line);
}
.tl-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dcd5; }
.tl-browser-bar b {
	margin-left: 12px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 500;
	color: var(--tl-muted);
	background: #fff;
	border-radius: 999px;
	border: 1px solid var(--tl-line);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tl-hero-shots { position: relative; padding: 0 0 40px 0; }
.tl-hero-shots .tl-browser { margin-right: 12%; }
.tl-phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 27%;
	margin: 0;
	border: 6px solid #1d1c21;
	border-radius: 26px;
	overflow: hidden;
	background: #1d1c21;
	box-shadow: 0 24px 50px rgba(29, 28, 33, .25);
}
.tl-phone img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* "Your trial sites" box for logged-in visitors */
.tl-mysites {
	background: #fff;
	border: 1px solid var(--tl-line);
	border-left: 4px solid var(--tl-green);
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 28px;
	box-shadow: 0 8px 24px rgba(29, 28, 33, .06);
}
.tl-mysites h2 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.tl-mysites ul { list-style: none; margin: 0; padding: 0; }
.tl-mysites li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--tl-line); }
.tl-mysites li:first-child { border-top: 0; padding-top: 0; }
.tl-mysites li span { display: block; font-size: 14px; color: var(--tl-muted); }
.tl-mysites-links { display: flex; gap: 8px; }

/* Sections */
.tl-section { padding: 80px 0; }
.tl-tinted { background: var(--tl-tint); }
.tl-h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.tl-h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.tl-section-head { max-width: 46em; margin-bottom: 36px; }
.tl-section-head p { font-size: 18px; color: var(--tl-muted); margin: 0; }
.tl-section > .container-xl > .tl-h2 { margin-bottom: 36px; }

.tl-cards { display: grid; gap: 20px; }
.tl-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-card {
	background: #fff;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius);
	padding: 26px 24px;
}
.tl-tinted .tl-card { border-color: transparent; }
.tl-card h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.tl-card p { margin: 0; color: #4b5348; line-height: 1.55; }
.tl-icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tl-green-soft);
	color: var(--tl-green-dark);
}
.tl-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Tabs (screenshots and styles) */
.tl-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tl-tablist [role="tab"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	font-weight: 700;
	font-size: 15px;
	color: var(--tl-ink);
	background: #fff;
	border: 1px solid var(--tl-line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tl-tablist [role="tab"]:hover { border-color: #c7d8b5; }
.tl-tablist [role="tab"][aria-selected="true"] { background: var(--tl-green-dark); border-color: var(--tl-green-dark); color: #fff; }
.tl-panel[hidden] { display: none; }
.tl-styles { margin-top: 72px; }
.tl-style-caption { font-size: 17px; color: #3f463c; margin-bottom: 16px; }
.tl-style-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tl-swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.tl-swatch-studio { background: linear-gradient(135deg, #f7f4ee 50%, #3f7a5c 50%); }
.tl-swatch-afterhours { background: linear-gradient(135deg, #0b0a12 50%, #d946ef 50%); }
.tl-swatch-summit { background: linear-gradient(135deg, #f4f6fb 50%, #2554e8 50%); }
.tl-swatch-commons { background: linear-gradient(135deg, #fbf8f3 50%, #0f9488 50%); }
.tl-swatch-hospitality { background: linear-gradient(135deg, #f6f3ec 50%, #7a2e3a 50%); }

/* Steps */
.tl-steps { list-style: none; counter-reset: tl-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; }
.tl-steps li { counter-increment: tl-step; background: #fff; border-radius: var(--tl-radius); padding: 26px 24px; }
.tl-steps li::before {
	content: counter(tl-step);
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tl-green);
	color: #fff;
	font-weight: 800;
	margin-bottom: 12px;
}
.tl-steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.tl-steps p { margin: 0; color: #4b5348; }

/* Good to know */
.tl-know { max-width: 52em; }
.tl-know ul { list-style: none; padding: 0; margin: 0; }
.tl-know li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--tl-line); line-height: 1.55; }
.tl-know li:first-child { border-top: 0; }
.tl-know li::before { position: absolute; left: 0; top: 15px; }

/* Final call to action */
.tl-final { padding: 80px 0 90px; background: linear-gradient(180deg, var(--tl-tint), #fff); }
.tl-final p { font-size: 18px; color: var(--tl-muted); margin-bottom: 24px; }

@media (max-width: 1199px) {
	.tl-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.tl-hero { padding: 110px 0 56px; }
	.tl-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-steps { grid-template-columns: minmax(0, 1fr); }
	.tl-section { padding: 56px 0; }
}
@media (max-width: 575px) {
	.tl-cards-4, .tl-cards-3, .tl-style-shots { grid-template-columns: minmax(0, 1fr); }
	.tl-lead { font-size: 17px; }
	.tl-hero-shots .tl-browser { margin-right: 18%; }
	.tl-phone { width: 34%; border-width: 4px; border-radius: 18px; }
	.tl-phone img { border-radius: 14px; }
	.tl-tablist { gap: 6px; }
	.tl-tablist [role="tab"] { padding: 8px 14px; font-size: 14px; }
	.tl-cta .btn { width: 100%; justify-content: center; }
	.tl-style-shots .tl-browser + .tl-browser { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tl-tablist [role="tab"] { transition: none; }
}

/* ---------- Help page (Test payments) ---------- */

.trywpem .trial-help-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.trywpem .trial-help-card { border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 22px 24px; background: #fff; }
.trywpem .trial-help-card h3 { margin-top: 0; font-size: 21px; }
.trywpem .trial-help-card table { width: 100%; margin: 10px 0 0; font-size: 15px; }
.trywpem .trial-help-card td { padding: 6px 0; border-top: 1px solid var(--tl-line); vertical-align: top; }
.trywpem .trial-help-card td:first-child { color: var(--tl-muted); width: 42%; padding-right: 12px; }
.trywpem .trial-help-card code { font-size: 15px; color: var(--tl-ink); background: var(--tl-tint); padding: 2px 6px; border-radius: 6px; user-select: all; }
@media (max-width: 767px) {
	.trywpem .trial-help-cards { grid-template-columns: minmax(0, 1fr); }
}

.tl-plain { margin: 0; border-radius: 12px; overflow: hidden; }
.tl-plain img { display: block; width: 100%; height: auto; }
