/* Лендінг gateway-whois.com — той самий візуальний словник, що й кабінет (src/static/assets/css/gw.css).
 * Без Bootstrap: сторінка одна, а важить менше, ніж шрифт іконок теми.
 * Mobile-first; темна тема — за системними налаштуваннями (кабінет живе на іншому домені, localStorage не спільний).
 */
:root {
	--accent: #605dff;
	--accent-strong: #4b48e8;
	--accent-soft: rgba(96, 93, 255, .1);
	--bg: #f6f7f9;
	--surface: #ffffff;
	--surface-2: #f1f2f6;
	--border: #e6e8ee;
	--text: #3a4252;
	--text-strong: #111827;
	--muted: #6b7486;
	--danger: #d03b3b;
	--danger-soft: rgba(208, 59, 59, .1);
	--warning: #b77a00;
	--warning-soft: rgba(250, 178, 25, .16);
	--success: #0b8a0b;
	--success-soft: rgba(12, 163, 12, .1);
	--info: #2a78d6;
	--info-soft: rgba(42, 120, 214, .1);
	--radius: 16px;
	--shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
	--wrap: 1160px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--accent: #7c7aff;
		--accent-strong: #9593ff;
		--accent-soft: rgba(124, 122, 255, .16);
		--bg: #0a0e19;
		--surface: #0f1729;
		--surface-2: #141d33;
		--border: #1d2740;
		--text: #c8d0dc;
		--text-strong: #ffffff;
		--muted: #8a94a7;
		--danger: #f07070;
		--danger-soft: rgba(240, 112, 112, .14);
		--warning: #fab219;
		--warning-soft: rgba(250, 178, 25, .14);
		--success: #3ecf5a;
		--success-soft: rgba(62, 207, 90, .12);
		--info: #6aa8f0;
		--info-soft: rgba(106, 168, 240, .14);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--text-strong); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; display: inline-block;
	white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Кнопки ── (пласкі, як у теми Trezo: суцільна заливка без світної тіні,
 *  скруглення ~8px, вторинна — акцентний контур, що заливається суцільним на hover) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px;
	font: 600 16px/1 inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ── Шапка ── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text-strong); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: none; gap: 28px; margin-left: 24px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text-strong); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-actions .login { display: none; color: var(--text-strong); font-weight: 600; text-decoration: none; font-size: 15px; padding: 0 8px; }
@media (min-width: 900px) {
	.nav-links { display: flex; }
	.top-actions .login { display: inline; }
}

/* ── Випадаючий список мов (<details>, без бібліотек) ── */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; cursor: pointer;
	color: var(--text-strong); font-weight: 600; font-size: 14px; border: 1px solid var(--border); background: var(--surface); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .ms { font-size: 18px; color: var(--muted); transition: transform .15s; }
.lang[open] summary .ms { transform: rotate(180deg); }
.lang .flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: 0 0 auto; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--surface);
	border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; }
.lang.up ul { top: auto; bottom: calc(100% + 6px); }
.lang li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-strong); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--surface-2); }
.lang li a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang li a[aria-current]::after { content: "check"; font-family: "Material Symbols Outlined"; margin-left: auto; font-size: 18px; }
.lang .code { text-transform: uppercase; }

/* ── Hero ── */
.hero { padding: 40px 0 24px; text-align: center; overflow: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
	font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.eyebrow .ms { font-size: 16px; }
.hero h1 { font-size: clamp(32px, 7vw, 58px); font-weight: 800; max-width: 820px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 360px; margin: 28px auto 0; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; justify-content: center; max-width: none; } }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 12px; display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; }
.hero .note span { display: inline-flex; align-items: center; gap: 4px; }
.hero .note .ms { font-size: 18px; color: var(--success); }

.shots { position: relative; margin: 40px auto 0; max-width: 1040px; }
.shot-desktop { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow), 0 30px 60px rgba(17, 24, 39, .12); border: 1px solid var(--border); background: var(--surface); }
.shot-mobile { position: absolute; right: -8px; bottom: -28px; width: 30%; max-width: 230px; border-radius: 26px; overflow: hidden; border: 6px solid var(--text-strong);
	box-shadow: 0 24px 48px rgba(17, 24, 39, .25); background: var(--surface); }
@media (max-width: 640px) {
	.shots { margin-top: 32px; }
	.shot-mobile { position: relative; right: auto; bottom: auto; width: 68%; max-width: 280px; margin: -60px auto 0; }
}

/* ── Секції ── */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.head h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; }
.head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899.98px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.icon.t-danger { background: var(--danger-soft); color: var(--danger); }
.icon.t-info { background: var(--info-soft); color: var(--info); }
.icon.t-warning { background: var(--warning-soft); color: var(--warning); }
.icon.t-success { background: var(--success-soft); color: var(--success); }

/* «Як це працює» */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 50%;
	background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* «Незабаром» */
.soon-band { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
@media (min-width: 900px) { .soon-band { grid-template-columns: 1.2fr 1fr 1fr 1fr; align-items: center; padding: 28px 32px; } }
.soon-band h3 { font-size: 20px; }
.soon-band .item { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 500; }
.badge-soon { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
	text-transform: uppercase; background: var(--warning-soft); color: var(--warning); white-space: nowrap; }

/* ── Тарифи ── */
.billing { display: flex; justify-content: center; margin-bottom: 28px; }
.billing-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.billing-switch input { position: absolute; opacity: 0; pointer-events: none; }
.billing-switch label { padding: 10px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.billing-switch label .save { font-size: 12px; color: var(--success); background: var(--success-soft); padding: 2px 8px; border-radius: 999px; }
#bill-m:checked ~ label[for=bill-m], #bill-y:checked ~ label[for=bill-y] { background: var(--accent); color: #fff; }
#bill-y:checked ~ label[for=bill-y] .save { background: rgba(255, 255, 255, .2); color: #fff; }
#bill-m:focus-visible ~ label[for=bill-m], #bill-y:focus-visible ~ label[for=bill-y] { outline: 3px solid var(--accent); outline-offset: 2px; }
.pricing .yearly { display: none; }
.pricing:has(#bill-y:checked) .yearly { display: inline; }
.pricing:has(#bill-y:checked) .monthly { display: none; }

.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 12px 32px rgba(96, 93, 255, .15); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14px; margin-top: 2px; min-height: 2.6em; }
.plan .price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 4px; color: var(--text-strong); }
.plan .price strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { color: var(--muted); font-size: 15px; }
.plan .billed { color: var(--muted); font-size: 13px; min-height: 1.5em; }
.plan .domains { margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ms { font-size: 20px; color: var(--success); margin-top: 1px; }
.plan li.is-soon .ms { color: var(--muted); }
.plan li.is-soon { color: var(--muted); }
.plan .btn { margin-top: auto; }
.enterprise { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 760px) { .enterprise { flex-direction: row; align-items: center; justify-content: space-between; } }
.enterprise h3 { font-size: 18px; }
.enterprise p { color: var(--muted); font-size: 15px; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { color: var(--muted); transition: transform .15s; }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ── Фінальний заклик ── */
.cta-band { background: var(--accent); color: #fff; border-radius: 24px; padding: 40px 24px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 4vw, 34px); }
.cta-band p { opacity: .85; margin: 10px auto 22px; max-width: 520px; }
.cta-band .btn { background: #fff; color: #3b39c9; box-shadow: none; }
.cta-band .btn:hover { background: #f1f1ff; }

/* ── Футер ── */
footer { padding: 40px 0 48px; border-top: 1px solid var(--border); margin-top: 64px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--text-strong); }
footer .tagline { margin-top: 8px; max-width: 340px; }
.steps + .soon-band { margin-top: 16px; }
.soon-text { color: var(--muted); font-size: 15px; margin-top: 4px; }
footer .copy { margin-top: 20px; }
.top .btn { white-space: nowrap; }
@media (max-width: 479.98px) {
	.top .brand-name { display: none; }      /* на телефоні в шапці лише знак — інакше кнопка й назва ламаються в два рядки */
	.top .btn-sm { padding: 0 12px; font-size: 14px; }
}
