 :root {
	--primary: #4f46e5;
	--primary-dark: #4338ca;
	--text: #111827;
	--muted: #6b7280;
	--border: #e5e7eb;
	--surface: #fff;
	--surface-soft: #f8fafc;
	--background: #fff;
	--radius: 14px;
	--max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow: auto !important;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { position: relative; z-index: 1000; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(229,231,235,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-container { width: min(100% - 40px, var(--max-width)); height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.brand-icon img { display: block; width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 9px 13px; border-radius: 9px; color: #4b5563; font-size: 14px; font-weight: 550; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--text); background: #f3f4f6; }
.nav-link.active { color: var(--primary); background: #eef2ff; }
.nav-link.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 999px; background: var(--primary); }
.menu-button { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; }
.menu-button svg { width: 20px; height: 20px; }
.ad-banner-slot { width: min(100% - 40px, 970px); min-height: 90px; margin: 16px auto; }
main { min-height: calc(100vh - 72px); }
.hero { padding: 80px 20px 70px; background: radial-gradient(circle at 50% -20%, #eef2ff 0, transparent 45%); }
.hero-container { width: min(100%, 900px); margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 6px 12px; border: 1px solid #e0e7ff; border-radius: 999px; background: #f5f7ff; color: var(--primary); font-size: 13px; font-weight: 650; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; }
h1 { margin: 0; color: #111827; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.055em; font-weight: 800; }
.hero-description { max-width: 650px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 19px); }
.tool-container { width: min(100% - 40px, 1900px); margin: 1em auto 80px; }
.tool-card { width: 100%; min-height: 800px; padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04); }
#root { width: 100%; min-height: 600px; }
.section { width: min(100% - 40px, var(--max-width)); margin: 0 auto; padding: 80px 0; }
.section-header { max-width: 650px; margin-bottom: 40px; }
.section-header h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.section-header p { margin: 0; color: var(--muted); font-size: 17px; }
.features, .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #d5d9ff; box-shadow: 0 12px 30px rgba(15,23,42,.07); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 11px; background: #eef2ff; color: var(--primary); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.how-section { background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { gap: 30px; }
.step { position: relative; }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 10px; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; }
.step h3 { margin: 0 0 7px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.faq { max-width: 800px; margin: 0 auto; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; color: var(--text); font-size: 16px; font-weight: 650; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
footer { border-top: 1px solid var(--border); background: #fff; }
.footer-container { width: min(100% - 40px, var(--max-width)); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 14px; font-weight: 650; }
.footer-text { margin: 0; color: var(--muted); font-size: 13px; }
body.home-site { --primary: #137b72; --primary-dark: #105e58; --text: #183033; --muted: #607276; --border: #dce6e3; --background: #f5f8f6; --surface-soft: #edf3f1; }
body.home-site .site-header { background: rgba(250, 252, 251, .94); border-bottom-color: #dce6e3; }
body.home-site .nav-link:hover { background: #e9f2ef; }
.home-page { width: 100%; min-height: calc(100vh - 152px); margin: 0; padding: 64px 40px 88px; background-color: #f5f8f6; background-image: linear-gradient(rgba(19, 123, 114, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 123, 114, .035) 1px, transparent 1px); background-size: 40px 40px; }
.home-intro { width: min(100%, 1080px); margin: 0 auto 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.home-eyebrow { margin: 0 0 14px; color: #137b72; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.home-intro h1 { margin: 0; color: #183033; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 48px; font-weight: 500; line-height: 1.1; letter-spacing: 0; }
.home-intro > div > p:last-child { max-width: 590px; margin: 12px 0 0; color: #607276; font-size: 17px; }
.home-local-note { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin: 0 0 5px; color: #46645f; font-size: 13px; font-weight: 600; }
.home-local-note span { width: 8px; height: 8px; border-radius: 50%; background: #4f9277; box-shadow: 0 0 0 4px #e1eee8; }
.home-tools { width: min(100%, 1080px); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-tool { --tool-accent: #137b72; min-height: 172px; display: grid; grid-template-columns: minmax(0, 1fr) 42px; grid-template-rows: auto 1fr; gap: 18px 16px; padding: 22px 24px; border: 1px solid #dce6e3; border-top: 3px solid var(--tool-accent); border-radius: 6px; background: rgba(255, 255, 255, .92); color: #183033; box-shadow: 0 3px 12px rgba(23, 57, 51, .035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-tool--merge { --tool-accent: #137b72; }
.home-tool--split { --tool-accent: #d47755; }
.home-tool--compress { --tool-accent: #397997; }
.home-tool--edit { --tool-accent: #718456; }
.home-tool:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tool-accent) 40%, #dce6e3); box-shadow: 0 10px 24px rgba(23, 57, 51, .08); }
.home-tool:focus-visible { outline: 3px solid color-mix(in srgb, var(--tool-accent) 35%, white); outline-offset: 3px; }
.home-tool-index { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--tool-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.home-tool-index span:first-child { font-variant-numeric: tabular-nums; }
.home-tool-main { min-width: 0; align-self: end; }
.home-tool-main strong, .home-tool-main small { display: block; }
.home-tool-main strong { margin-bottom: 5px; font-size: 20px; font-weight: 650; }
.home-tool-main small { max-width: 390px; color: #607276; font-size: 14px; line-height: 1.5; }
.home-tool-arrow { align-self: end; justify-self: end; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #dce6e3; border-radius: 50%; color: var(--tool-accent); font-size: 18px; transition: transform .18s ease, background .18s ease; }
.home-tool:hover .home-tool-arrow { transform: translate(2px, -2px); background: #f4f8f6; }
@media (max-width: 900px) { .features, .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
	.nav-container { height: 64px; width: min(100% - 28px, var(--max-width)); }
	.main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px; flex-direction: column; align-items: stretch; gap: 3px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(15,23,42,.08); }
	.main-nav.open { display: flex; }
	.nav-link { padding: 12px 14px; }
	.nav-link.active::after { display: none; }
	.menu-button { display: flex; }
	.ad-banner-slot { width: min(100% - 28px, 970px); min-height: 100px; margin: 12px auto; }
	.hero { padding: 60px 18px; }
	.tool-container { width: min(100% - 28px, 900px); }
	.tool-card { min-height: 550px; padding: 18px; }
	#root { width: 100%; min-height: 520px; }
	.section { width: min(100% - 28px, var(--max-width)); padding: 60px 0; }
	.features, .steps { grid-template-columns: 1fr; }
	.footer-container { width: min(100% - 28px, var(--max-width)); padding: 22px 0; flex-direction: column; align-items: flex-start; }
	.home-page { min-height: calc(100vh - 144px); padding: 48px 20px 64px; }
	.home-intro { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 26px; }
	.home-intro h1 { font-size: 40px; }
	.home-local-note { margin: 0; }
	.home-tools { grid-template-columns: 1fr; gap: 10px; }
	.home-tool { min-height: 150px; padding: 19px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
