/* Elefante Installer – redesign */

:root {
	--bg: #FAF7F0;
	--surface: #FFFFFF;
	--surface-2: #F3EEE3;
	--ink: #1E1B18;
	--ink-2: #57514A;
	--ink-3: #857D73;
	--line: #E8E1D3;
	--accent: #E2552F;
	--accent-strong: #C8431F;
	--accent-soft: #FCE7DD;
	--accent-text: #B03A18;
	--on-accent: #FFFFFF;
	--success: #2E8A57;
	--success-soft: #E0F3E8;
	--shadow-sm: 0 1px 2px rgba(40, 30, 20, .06), 0 1px 3px rgba(40, 30, 20, .05);
	--shadow-md: 0 4px 12px rgba(40, 30, 20, .07), 0 12px 32px rgba(40, 30, 20, .06);
	--shadow-lg: 0 24px 60px rgba(40, 30, 20, .16);
	--radius: 14px;
	--radius-lg: 22px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #14120F;
		--surface: #1D1A16;
		--surface-2: #26221D;
		--ink: #F4EFE7;
		--ink-2: #C2B9AC;
		--ink-3: #938A7E;
		--line: #353029;
		--accent: #F0663C;
		--accent-strong: #FF7C52;
		--accent-soft: #3B231A;
		--accent-text: #FF9068;
		--success: #5CC48A;
		--success-soft: #1D3226;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
		--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .25);
		--shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #14120F;
	--surface: #1D1A16;
	--surface-2: #26221D;
	--ink: #F4EFE7;
	--ink-2: #C2B9AC;
	--ink-3: #938A7E;
	--line: #353029;
	--accent: #F0663C;
	--accent-strong: #FF7C52;
	--accent-soft: #3B231A;
	--accent-text: #FF9068;
	--success: #5CC48A;
	--success-soft: #1D3226;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .25);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.accent { color: var(--accent); }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px;
	border: 1.5px solid transparent; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-link { background: none; color: var(--ink-2); padding: 0 8px; }
.btn-link:hover { color: var(--accent-text); }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-name span { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 88px; overflow: hidden; position: relative; }
.hero::before {
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
	background: radial-gradient(circle at center, var(--accent-soft), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
	padding: 6px 14px 6px 10px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .icon { color: var(--accent); }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 .accent { display: block; }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 36em; }
.hero-search {
	position: relative; display: flex; align-items: center; margin-top: 32px; max-width: 540px;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
	box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-soft); }
.hero-search > .icon { position: absolute; left: 20px; color: var(--ink-3); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; height: 58px; padding: 0 56px 0 52px; border: 0; background: none; font-size: 16px; outline: none; }
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search kbd {
	position: absolute; right: 18px; padding: 2px 8px; border-radius: 6px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font: 600 12px var(--font);
}
.hero-stats { display: flex; gap: 36px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: var(--ink-3); font-weight: 500; }

.hero-visual { position: relative; height: 480px; }
.shot, .browser {
	background: var(--surface); border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shot { position: absolute; width: 64%; transition: transform .4s ease; }
.shot img { width: 100%; aspect-ratio: 545 / 409; object-fit: cover; object-position: top; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar i:first-child { background: #F26B5B; }
.shot-bar i:nth-child(2) { background: #F5BE4F; }
.shot-bar i:nth-child(3) { background: #5CC48A; }
.shot-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: var(--surface); color: var(--ink-3); font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-1 { right: 0; top: 0; z-index: 3; transform: rotate(2deg); }
.shot-2 { left: 0; top: 120px; z-index: 2; transform: rotate(-4deg); }
.shot-3 { right: 8%; bottom: 0; z-index: 1; transform: rotate(5deg); width: 52%; }
.hero-visual:hover .shot-1 { transform: rotate(0) translateY(-6px); }
.hero-visual:hover .shot-2 { transform: rotate(-2deg) translateX(-8px); }
.toast {
	position: absolute; left: 14%; bottom: 36px; z-index: 4;
	display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
	animation: pop .6s .2s both cubic-bezier(.2, .9, .3, 1.3);
}
.toast-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.toast strong { display: block; font-size: 15px; }
.toast small { color: var(--ink-3); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.94); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2, .about-grid h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.03em; }
.section-head p { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.section-head-center { justify-content: center; text-align: center; margin-bottom: 48px; }
.result-count { color: var(--ink-3); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* filter bar: search + category chips */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.filter-search { position: relative; flex: 0 0 240px; }
.filter-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.filter-search input {
	width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); font-size: 14px; outline: none;
}
.filter-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-bar { align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.chip .icon { width: 16px; height: 16px; }
.chip span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.is-active span { color: inherit; opacity: .7; }

/* categories + cards */
.category + .category { margin-top: 56px; }
.category-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 22px; }
.category-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.category-icon .icon { width: 20px; height: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.card-title { font-size: 20px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent-text); }
.card-text {
	margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { display: flex; align-items: center; gap: 2px; margin: auto -10px 0; padding-top: 14px; }
.card-actions .btn-icon { margin-left: auto; margin-right: 10px; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
.card:hover .btn-icon { background: var(--accent); color: var(--on-accent); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state > .icon { width: 32px; height: 32px; color: var(--ink-3); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 24px; right: 28px; font-size: 56px; font-weight: 800; line-height: 1; color: var(--surface-2); letter-spacing: -.04em; }
.step-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.step h3 { margin-top: 20px; font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-grid > div > p { margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.feature-list, .gift-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-list li, .gift-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list h3 { font-size: 17px; letter-spacing: -.01em; }
.feature-list p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.feature-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.feature-icon .icon { width: 20px; height: 20px; }
.gift-list li { padding: 16px 18px; box-shadow: var(--shadow-sm); }
.gift-list strong { display: block; font-size: 16px; }
.gift-list small { color: var(--ink-3); font-size: 14px; }

/* domain search band */
.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	padding: 44px 48px; border-radius: 28px; color: #fff;
	background: linear-gradient(135deg, #E2552F, #B8391A);
	box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 32px; }
.cta-band p { margin-top: 6px; opacity: .9; font-size: 17px; }
.domain-form { display: flex; gap: 8px; flex-wrap: wrap; }
.domain-form input, .domain-form select {
	height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
	background: var(--surface); color: var(--ink); font-size: 16px; outline: none;
}
.domain-form input { flex: 1; min-width: 160px; }
.domain-form input:focus, .domain-form select:focus { border-color: var(--accent); }
.cta-band .btn-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.domain-form-stack { flex-direction: column; margin-top: 16px; }
.domain-form-stack input, .domain-form-stack select { width: 100%; }

/* ---------- script / hosting pages ---------- */
.page-hero { padding: 24px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 640px; height: 640px; z-index: -1; background: radial-gradient(circle, var(--accent-soft), transparent 65%); }
.page-hero-compact { padding-bottom: 56px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; font-size: 14px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb span { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.page-hero h1 { margin-top: 16px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.035em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.pill .icon { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .icon { color: var(--success); }
.browser { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .4s; }
.browser:hover { transform: none; }
.browser img { width: 100%; aspect-ratio: 545 / 409; object-fit: cover; object-position: top; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 720px; }
.prose-title { font-size: 34px; color: var(--ink); margin-bottom: 8px; letter-spacing: -.03em; }
.prose h3 { margin: 36px 0 10px; font-size: 22px; line-height: 1.3; color: var(--ink); letter-spacing: -.02em; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose > h3:first-of-type { margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tour-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 28px;
	border-radius: var(--radius-lg); background: var(--ink); color: var(--bg); text-decoration: none;
}
.tour-banner strong { display: block; font-size: 19px; }
.tour-banner small { opacity: .75; font-size: 15px; }
.tour-banner > .icon { width: 28px; height: 28px; transition: transform .2s; }
.tour-banner:hover > .icon { transform: translateX(4px); }

.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.panel-accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.panel-accent .btn-block { margin-top: 18px; }
.panel-title { font-size: 18px; letter-spacing: -.01em; }
.link-list, .mini-list, .icon-list { margin: 12px 0 0; padding: 0; list-style: none; }
.link-list a, .mini-list a {
	display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px;
	border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.link-list a:hover, .mini-list a:hover { background: var(--surface-2); }
.link-list .icon { color: var(--accent-text); }
.icon-end { margin-left: auto; color: var(--ink-3) !important; width: 16px; height: 16px; }
.icon-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--ink-2); font-size: 15px; }
.icon-list .icon { margin-top: 3px; color: var(--accent-text); }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 20px; }
.plan-price { margin-top: 12px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { flex: 1; margin: 24px 0; padding: 0; list-style: none; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.plan li .icon { margin-top: 3px; color: var(--success); }

/* ---------- shared bits for the inner pages ---------- */
.page-hero-plain { padding-bottom: 32px; }
.page-hero-plain h1 { margin-top: 0; font-size: clamp(32px, 4.2vw, 48px); }
.page-hero-plain h1 a { color: var(--accent); text-decoration: none; }
.section-flush { padding-top: 8px; }
.notice {
	display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; padding: 14px 18px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); font-size: 15px;
}
.notice .icon { margin-top: 3px; color: var(--accent-text); }
.notice a { color: var(--accent-text); font-weight: 600; }
.category-title-spaced { margin-top: 56px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.data-table th, .data-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child { text-align: left; }
.data-table thead th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.form-error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #FDE8E4; color: #A12A12; font-weight: 600; }

/* legal pages */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 96px; }
.legal-nav ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.4; }
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.legal {
	max-width: 780px; padding: 40px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	color: var(--ink-2); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere;
}
.legal > :first-child { margin-top: 0; }
.legal p, .legal ul, .legal ol, .legal table { margin: 0 0 14px; }
.legal h1, .legal h2, .legal h3, .legal h4 { margin: 32px 0 12px; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.legal strong, .legal b { color: var(--ink); }
.legal a { color: var(--accent-text); }
.legal ol, .legal ul { padding-left: 24px; }
.legal li { margin: 6px 0; }
.legal li > p { margin: 0 0 8px; }
.legal ol ol { list-style-type: lower-alpha; }
.legal ol ol ol { list-style-type: lower-roman; }
.legal table { border-collapse: collapse; max-width: 100%; font-size: 14px; }
.legal td, .legal th { padding: 6px 10px; border: 1px solid var(--line); background: var(--surface) !important; color: var(--ink-2); }
.legal td[bgcolor="#CFCFCF"] { background: var(--surface-2) !important; font-weight: 700; }
.legal [style*="color:#3D985D"] { color: var(--success) !important; }

/* popup windows opened from the order form */
.popup { background: var(--surface); }
.popup-main { padding: 20px; }
.popup .legal { padding: 0; border: 0; max-width: none; font-size: 15px; }
.popup-close { margin-top: 20px; text-align: center; }

/* free templates / themes */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.template-card .card-media { aspect-ratio: 4 / 3; }
.template-card .card-media img { object-position: center top; }
.spec-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink-3); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { color: var(--ink); font-weight: 600; text-align: right; }
.template-actions { margin: auto 0 0; justify-content: space-between; }
.download-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.icon-down { transform: rotate(90deg); width: 14px; height: 14px; }

/* demo viewer */
.demo-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.demo-bar {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px;
	background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.demo-brand { font-size: 17px; }
.demo-picker select {
	height: 38px; min-width: 220px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface-2); font-weight: 600; font-size: 14px; cursor: pointer;
}
.demo-logins { display: flex; align-items: center; gap: 8px; }
.demo-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.demo-help { position: relative; }
.demo-help summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--ink-3); list-style: none; }
.demo-help summary::-webkit-details-marker { display: none; }
.demo-help summary:hover, .demo-help[open] summary { background: var(--surface-2); color: var(--ink); }
.demo-help > div {
	position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: 280px; padding: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px;
}
.demo-help p + p { margin-top: 6px; }
.muted { color: var(--ink-3); }
.demo-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.demo-newtab { flex: 1; overflow-y: auto; display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.demo-newtab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; max-width: 980px; width: 100%; padding: 32px; }
.demo-newtab-shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line); }
.demo-newtab h2 { font-size: 30px; letter-spacing: -.02em; }
.demo-newtab-panel > div > p { margin-top: 8px; color: var(--ink-2); }
.demo-newtab .hero-actions { margin-top: 20px; }
.demo-credentials { margin: 20px 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.demo-credentials li { display: flex; gap: 8px; align-items: baseline; }
.demo-credentials span { min-width: 110px; color: var(--ink-3); }
@media (max-width: 760px) { .demo-newtab-panel { grid-template-columns: 1fr; padding: 20px; } }

/* order tour */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.stepper a {
	display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
	transition: border-color .15s;
}
.stepper a:hover { border-color: var(--ink-3); }
.stepper-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 800; }
.stepper-num .icon { width: 18px; height: 18px; }
.stepper-text { display: flex; flex-direction: column; line-height: 1.3; }
.stepper-text small { color: var(--ink-3); font-size: 13px; }
.stepper .is-current a { border: 2px solid var(--accent); box-shadow: var(--shadow-sm); }
.stepper .is-current .stepper-num { background: var(--accent); color: var(--on-accent); }
.stepper .is-done .stepper-num { background: var(--success-soft); color: var(--success); }
.tour-start { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tour-start h2 { font-size: 30px; letter-spacing: -.02em; }
.steps-compact { grid-template-columns: 1fr; gap: 12px; }
.steps-compact .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px 20px; box-shadow: none; background: var(--bg); }
.steps-compact .step-icon { grid-row: span 2; }
.steps-compact .step h3 { margin: 0; font-size: 17px; }
.steps-compact .step p { margin: 2px 0 0; font-size: 15px; }
.steps-compact .step-num { top: 14px; right: 18px; font-size: 32px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tour-panel > p { margin-bottom: 16px; }
.tour-search { margin-bottom: 8px; }
.tour-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.tour-note .icon { margin-top: 3px; color: var(--accent-text); }
.price-toggle { margin-top: 16px; font-size: 14px; font-weight: 600; }
.price-toggle a { color: var(--accent-text); }
#realPrices { margin-top: 12px; }
.tour-aside p { font-size: 15px; }
.tour-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* old form markup (domain search results, order form) inside the new pages */
.legacy-box { overflow-x: auto; font-size: 14px; color: var(--ink); }
.legacy-box table { border-collapse: separate; border-spacing: 0; max-width: 100%; }
.legacy-box td, .legacy-box th { padding: 6px 8px; vertical-align: middle; font-size: 14px; }
.legacy-box input[type="text"], .legacy-box input[type="password"], .legacy-box input[type="email"], .legacy-box select, .legacy-box textarea {
	min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px;
}
.legacy-box input[type="text"]:focus, .legacy-box select:focus, .legacy-box textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.legacy-box input[type="submit"], .legacy-box input[type="button"], .legacy-box button {
	min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer;
}
.legacy-box a { color: var(--accent-text); }
.legacy-box .red { color: #C0341D; }
.domain-results { margin-top: 20px; }
/* the old results script colours the rows inline (#f6f6f6 / selected #FFFF99) - map them to the site colours */
.domain-results td[bgcolor="#f6f6f6"], .domain-results td[style*="246, 246, 246"], .domain-results td[style*="f6f6f6"] { background-color: var(--surface-2) !important; }
.domain-results td[style*="255, 255, 153"], .domain-results td[style*="FFFF99"], .domain-results td[style*="ffff99"] { background-color: var(--accent-soft) !important; border-color: var(--accent) !important; }
.order-form { padding: 32px; }
a.ntip { position: relative; z-index: 24; border-bottom: 1px dashed var(--success); cursor: help; text-decoration: none; }
a.ntip span { display: none; text-align: left; }
a.ntip:hover { z-index: 25; }
a.ntip:hover span {
	display: block; position: absolute; width: 320px; margin: 12px 0 0 16px; padding: 10px 12px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
	color: var(--ink-2); font-size: 13px; line-height: 1.5;
}

/* templates page: which Joomla versions the templates fit */
.template-note { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); color: var(--ink-2); font-size: 15px; max-width: 36em; }

/* 404 */
.not-found { max-width: 720px; }
.not-found h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.035em; }
.not-found-links { margin: 40px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
a.chip { text-decoration: none; }

/* scripts without a picture: a tile with the category icon and the name */
.media-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 100%; min-height: 100%; aspect-ratio: 545 / 409; padding: 16px; text-align: center;
	background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 70%), var(--surface-2);
	color: var(--accent-text); font-weight: 800; font-size: 20px; letter-spacing: -.02em;
}
.media-tile .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.media-tile span { color: var(--ink); }
.card-media { text-decoration: none; }
.card-media .media-tile { aspect-ratio: auto; }
.browser .media-tile { font-size: 28px; }
.browser .media-tile .icon { width: 64px; height: 64px; padding: 14px; }
.mini-media { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.mini-media img { width: 64px; height: 48px; object-fit: cover; object-position: top; }
.mini-media .media-tile { font-size: 0; gap: 0; padding: 0; aspect-ratio: auto; }
.mini-media .media-tile .icon { width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
.mini-media .media-tile span { display: none; }
.card-version { margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.version-line { margin-top: 10px; color: var(--ink-3); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.demo-newtab-shot { overflow: hidden; }
.demo-newtab-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 30em; }
.footer-title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.footer-links { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-links-cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.hero-grid, .page-hero-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
	.hero-visual { height: 420px; max-width: 620px; width: 100%; margin: 0 auto; }
	.content-grid { grid-template-columns: 1fr; gap: 48px; }
	.sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.browser { transform: none; max-width: 640px; }
	.plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.legal-grid, .tour-grid, .tour-start { grid-template-columns: 1fr; gap: 24px; }
	.legal-nav { position: static; order: 2; padding-top: 8px; }
	.legal-nav ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
	.stepper { grid-template-columns: 1fr; }
	.tour-start { padding: 28px 24px; }
	.demo-links { margin-left: 0; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px;
		background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
		display: none;
	}
	.site-nav a:not(.btn) { padding: 12px 14px; }
	.site-nav .btn { margin: 8px 0 0; min-height: 46px; }
	.site-header.nav-open .site-nav { display: flex; }
	.site-header.nav-open .icon-open { display: none; }
	.site-header.nav-open .icon-close { display: block; }
	.steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.hero { padding: 32px 0 64px; }
	.lead { font-size: 17px; }
	.hero-search kbd { display: none; }
	.hero-search input { padding-right: 20px; }
	.hero-stats { gap: 24px; }
	.hero-stats strong { font-size: 24px; }
	.hero-visual { height: 300px; }
	.toast { left: 0; bottom: 8px; padding: 10px 14px 10px 10px; }
	.section { padding: 64px 0; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
	.filter-search { flex: none; }
	.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.chips.not-found-links { flex-wrap: wrap; overflow: visible; margin: 32px 0 0; padding: 0; }
	.demo-links .btn-ghost { display: none; }
	.card-grid { grid-template-columns: 1fr; }
	.cta-band { padding: 32px 24px; }
	.domain-form { width: 100%; }
	.domain-form .btn { width: 100%; }
	.hero-actions .btn, .hero-actions .inline-form, .hero-actions .inline-form .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.tour-banner { padding: 20px; }
	.legal { padding: 24px 20px; font-size: 15px; }
	.order-form { padding: 20px 16px; }
	.demo-bar { gap: 10px; padding: 10px 12px; }
	.demo-picker, .demo-picker select { width: 100%; min-width: 0; }
	.tour-nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
