/*
	File: assets/css/00-global.css
	Description: Shared tokens, reset, typography, layout helpers, and accessibility defaults.
	Last modified: 2026-07-17
	Copyright: (c) 2026 mytag.sol Community. All rights reserved.
*/

:root {
	--color-bg: #05000f;
	--color-surface: #110025;
	--color-surface-2: #1f0e52;
	--color-gold: #FFC000;
	--color-gold-bright: #ffd84d;
	--color-lavender: #d9b1ff;
	--color-text: #ffffff;
	--color-text-muted: rgba(255, 255, 255, 0.72);
	--color-text-faint: rgba(255, 255, 255, 0.5);
	--color-border: rgba(217, 177, 255, 0.34);
	--color-border-strong: rgba(255, 192, 0, 0.48);
	--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.46);
	--shadow-card-hover: 0 14px 42px rgba(0, 0, 0, 0.58);
	--radius-card: 14px;
	--radius-pill: 999px;
	--content-width: 1060px;
	--content-width-wide: 1200px;
	--section-divider-bg: linear-gradient(90deg, transparent, rgba(217, 177, 255, 0.24), rgba(255, 192, 0, 0.2), rgba(217, 177, 255, 0.24), transparent);
	--font-primary: "Hind", "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--line-compact: 1.34;
	--line-readable: 1.42;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

/* Preserve the authored palette in browsers that otherwise auto-adjust dark pages. */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	color-scheme: only dark;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-primary);
	line-height: var(--line-compact);
	color-scheme: only dark;
}

main {
	width: 100%;
}

.js .compat-notice {
	display: none;
}

.compat-notice {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto auto minmax(18ch, 1fr);
	align-items: center;
	gap: 0.72rem;
	width: fit-content;
	max-width: min(calc(100% - 1.5rem), 720px);
	min-width: min(100%, 440px);
	min-height: 52px;
	margin: 0.72rem auto 0;
	padding: 0.72rem 1rem;
	border: 1px solid rgba(255, 192, 0, 0.28);
	border-radius: 12px;
	background: rgba(12, 0, 28, 0.88);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	text-align: left;
	backdrop-filter: blur(16px);
}

.compat-notice::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 1;
	width: 1.38rem;
	height: 1.24rem;
	padding-top: 0.14rem;
	background: rgba(255, 192, 0, 0.92);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	color: #120018;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
}

.notice-title {
	grid-column: 2;
	color: var(--color-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.15;
	text-transform: uppercase;
}

.notice-body {
	grid-column: 3;
	min-width: 0;
	color: var(--color-text-muted);
	font-size: 0.78rem;
	line-height: 1.45;
}

.notice-body span,
.sentence-line {
	display: block;
}

.content-fit {
	width: fit-content;
	max-width: 100%;
}

.text-measure {
	max-width: 64ch;
}

.text-measure--compact {
	max-width: 42ch;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-gold);
	text-decoration: none;
}

a:hover {
	color: var(--color-gold-bright);
}

button,
input {
	font: inherit;
}

button {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* Trim font-dependent half-leading so control labels center by glyph metrics. */
.legal-back,
.hero-name-option,
.hero-name-option-fallback,
.hero-tool-primary,
.hero-tool-secondary,
.card-cta,
.bsw-clear,
.filter-pill,
.bc-cta,
.browser-more-btn,
.faq-q > span:first-child,
.social-btn,
.footer-action {
	text-box: trim-both cap alphabetic;
}

strong {
	font-weight: 700;
	color: rgba(255, 255, 255, 0.94);
}

.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;
}

.highlight-sol {
	color: var(--color-gold);
}

.js-only {
	display: none;
	width: 100%;
}

.section-header {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.section-header--center {
	text-align: center;
}

.section-eyebrow {
	margin-bottom: 0.55rem;
	color: var(--color-gold);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.section-headline {
	margin-bottom: 0.55rem;
	color: var(--color-text);
	font-size: clamp(1.65rem, 4vw, 2.45rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.08;
	text-wrap: balance;
	font-synthesis: none;
}

.section-subline {
	max-width: 46ch;
	margin-right: auto;
	margin-left: auto;
	color: var(--color-text-muted);
	font-size: clamp(0.9rem, 2vw, 1rem);
	line-height: var(--line-readable);
	text-wrap: balance;
}

p,
li,
.intro-body,
.hero-demo-note,
.bc p,
.faq-a p,
.footer-contact,
.footer-disclaimer p,
.footer-footnotes p,
.legal-card p,
.legal-card li {
	text-wrap: pretty;
	hyphens: manual;
	overflow-wrap: break-word;
}

sup {
	position: relative;
	top: -0.38em;
	margin-left: 0.08em;
	font-size: 0.68em;
	line-height: 0;
	vertical-align: baseline;
}

.section-divider {
	width: min(520px, 74%);
	height: 1px;
	margin: 0.4rem auto 0;
	background: var(--section-divider-bg);
}

.legal-main {
	width: min(calc(100% - 2rem), 860px);
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.legal-back {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin-bottom: 1rem;
	padding: 0.42rem 0.78rem;
	border: 1px solid rgba(255, 192, 0, 0.34);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 192, 0, 0.86);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.legal-card {
	padding: clamp(1.35rem, 4vw, 2.25rem);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%),
		linear-gradient(135deg, rgba(31, 14, 82, 0.72), rgba(14, 0, 31, 0.72));
	box-shadow: var(--shadow-card);
}

.legal-card h1 {
	margin-bottom: 0.35rem;
	color: var(--color-text);
	font-size: clamp(1.8rem, 6vw, 2.4rem);
	line-height: 1.1;
}

.legal-card h2 {
	margin-top: 1.45rem;
	margin-bottom: 0.42rem;
	color: var(--color-gold);
	font-size: 1rem;
	line-height: 1.25;
}

.legal-card p,
.legal-card li {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.92rem;
	line-height: 1.36;
}

.legal-card p + p,
.legal-card li + li {
	margin-top: 0.56rem;
}

.legal-updated {
	color: rgba(255, 255, 255, 0.48) !important;
	font-size: 0.8rem !important;
}

.reveal-section {
	position: relative;
	--reveal-brightness: 1;
	--reveal-scale: 1;
	--reveal-y: 0;
	scroll-margin-top: 0;
}

#hero-name-tool {
	scroll-margin-top: 18px;
}

#registrar-browser,
.benefits-panel {
	scroll-margin-top: 0;
}

.js .reveal-section:not(.hero-section) .section-header,
.js .reveal-section:not(.hero-section) .top-picks-carousel,
.js .reveal-section:not(.hero-section) .top-picks-controls,
.js .reveal-section:not(.hero-section) #browser-controls,
.js .reveal-section:not(.hero-section) .browser-grid,
.js .reveal-section:not(.hero-section) .faq-list {
	opacity: 1;
	filter: brightness(var(--reveal-brightness));
	transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
	transition: filter 0.22s linear, transform 0.22s ease-out;
	will-change: filter, transform;
}

.js .reveal-section.is-visible:not(.hero-section) .section-header,
.js .reveal-section.is-visible:not(.hero-section) .top-picks-carousel,
.js .reveal-section.is-visible:not(.hero-section) .top-picks-controls,
.js .reveal-section.is-visible:not(.hero-section) #browser-controls,
.js .reveal-section.is-visible:not(.hero-section) .browser-grid,
.js .reveal-section.is-visible:not(.hero-section) .faq-list {
	opacity: 1;
	filter: brightness(var(--reveal-brightness));
	transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
}

.js .reveal-section.is-visible:not(.hero-section) .top-picks-carousel,
.js .reveal-section.is-visible:not(.hero-section) #browser-controls,
.js .reveal-section.is-visible:not(.hero-section) .faq-list {
	transition-delay: 0.08s;
}

.js .reveal-section.is-visible:not(.hero-section) .top-picks-controls,
.js .reveal-section.is-visible:not(.hero-section) .browser-grid {
	transition-delay: 0.14s;
}

:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
	border-radius: 6px;
}

:focus:not(:focus-visible) {
	outline: none;
}

@keyframes blink-smooth {
	0%,
	100% {
		opacity: 0.85;
	}

	50% {
		opacity: 0;
	}
}

@media (min-width: 1400px) {
	:root {
		--content-width: var(--content-width-wide);
	}
}

@media (min-width: 700px) {
	.legal-card p,
	.legal-card li {
		text-align: justify;
		text-align-last: left;
	}
}

@media (max-width: 759px) {
	html.js {
		scroll-padding-top: 0;
	}

	.compat-notice {
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 0.58rem;
		row-gap: 0.4rem;
		width: fit-content;
		max-width: min(calc(100% - 1rem), 520px);
		min-width: min(calc(100% - 1rem), 310px);
		margin-top: 0.5rem;
		padding: 0.68rem 0.78rem;
	}

	.notice-title {
		grid-column: 2;
		font-size: 0.7rem;
	}

	.notice-body {
		grid-column: 1 / -1;
		font-size: 0.74rem;
	}

	.reveal-section {
		min-height: 0;
	}

	.hero-section {
		min-height: auto;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal-section:not(.hero-section) .section-header,
	.js .reveal-section:not(.hero-section) .top-picks-carousel,
	.js .reveal-section:not(.hero-section) .top-picks-controls,
	.js .reveal-section:not(.hero-section) #browser-controls,
	.js .reveal-section:not(.hero-section) .browser-grid,
	.js .reveal-section:not(.hero-section) .faq-list,
	.js .social-section .social-inner {
		opacity: 1;
		filter: none;
		transform: none;
		will-change: auto;
	}
}

@media print {
	body {
		background: #ffffff !important;
		color: #000000 !important;
		color-scheme: normal;
	}

	a {
		color: #000000 !important;
		text-decoration: underline !important;
	}
}
