/* lookup.numbersring.com – NumbersRing palette: blue #467efe → sky #61cafd, ink #222328 */

:root {
	--blue: #467efe;
	--blue-deep: #4260cb;
	--sky: #61cafd;
	--sky-light: #7ed7fc;
	--ink: #222328;
	--muted: #7e7f87;
	--muted-2: #8c94b0;
	--border: #e7e7e7;
	--bg: #f9fbfd;
	--bg-soft: #edf2ff;
	--bg-soft-2: #eff9ff;
	--white: #ffffff;
	--red: #f24c35;
	--gradient: linear-gradient(95.35deg, #467efe 5.26%, #61cafd 100%);
	--radius: 16px;
	--pill: 30px;
	--shadow: 0 14px 24px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 24px 48px rgba(66, 96, 203, 0.16);
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}

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

a:hover {
	color: var(--blue-deep);
}

h1, h2, h3 {
	margin: 0;
	line-height: 1.25;
	font-weight: 600;
}

.wrap {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.muted {
	color: var(--muted);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: var(--pill);
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:disabled {
	opacity: 0.7;
	cursor: default;
	transform: none;
}

.btn-primary {
	background: var(--gradient);
	color: var(--white);
	box-shadow: 0 8px 20px rgba(70, 126, 254, 0.35);
}

.btn-primary:hover {
	color: var(--white);
	box-shadow: 0 12px 26px rgba(70, 126, 254, 0.45);
}

.btn-outline {
	background: var(--white);
	border-color: var(--blue);
	color: var(--blue);
}

.btn-outline:hover {
	background: var(--bg-soft);
}

.btn-ghost {
	background: transparent;
	color: var(--muted);
}

.btn-ghost:hover {
	color: var(--blue);
	background: var(--bg-soft);
}

.btn-light {
	background: var(--white);
	color: var(--blue-deep);
}

.btn-lg {
	padding: 16px 34px;
	font-size: 16px;
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--pill);
	font-size: 13px;
	font-weight: 500;
}

.pill-sponsor {
	background: var(--bg-soft);
	color: var(--blue-deep);
}

.pill-sponsor:hover {
	background: #dfe8ff;
}

/* Header */

.topbar {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 10;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 72px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo img {
	height: 36px;
	width: auto;
}

.logo-tag {
	padding: 2px 10px;
	border-radius: var(--pill);
	background: var(--gradient);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.topnav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-weight: 500;
}

.topnav a {
	color: var(--ink);
}

.topnav a:hover {
	color: var(--blue);
}

/* Hero */

.hero {
	position: relative;
	padding: 72px 0 96px;
	background: var(--gradient);
	color: var(--white);
	overflow: hidden;
}

.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.hero::before {
	width: 420px;
	height: 420px;
	top: -180px;
	right: -120px;
}

.hero::after {
	width: 260px;
	height: 260px;
	bottom: -140px;
	left: -80px;
}

.hero-inner {
	position: relative;
	text-align: center;
	max-width: 820px;
}

.eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.18);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 20px 0 12px;
	font-size: 42px;
	font-weight: 700;
}

.hero h1 em {
	font-style: normal;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.lead {
	margin: 0 auto 32px;
	max-width: 600px;
	font-size: 17px;
	opacity: 0.95;
}

.search {
	max-width: 680px;
	margin: 0 auto;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 20px;
	background: var(--white);
	border-radius: var(--pill);
	box-shadow: var(--shadow-lg);
}

.search-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: var(--sky);
}

.search-box input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 12px 8px;
	font: inherit;
	font-size: 18px;
	color: var(--ink);
	background: transparent;
	outline: none;
}

.search-box input::placeholder {
	color: var(--muted-2);
}

.search-error {
	margin: 14px 0 0;
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--red);
	font-weight: 500;
}

.search-hint {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--white);
	opacity: 0.95;
}

.search-note {
	margin: 16px 0 0;
	font-size: 13px;
	opacity: 0.8;
}

.keypad {
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.result-entered {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
}

/* Spinner */

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: var(--white);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Main content */

.main {
	padding: 40px 20px 64px;
}

.main.page {
	padding-top: 56px;
}

/* Result */

.result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	margin-top: -72px;
	margin-bottom: 48px;
	position: relative;
}

.result-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
}

.result-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.result-label {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.result-number {
	font-size: 32px;
	font-weight: 700;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: var(--pill);
	font-size: 12px;
	font-weight: 600;
}

.badge-blue {
	background: var(--bg-soft);
	color: var(--blue-deep);
}

.badge-teal {
	background: #e0f7f1;
	color: #0f8a68;
}

.badge-green {
	background: #e3f5ec;
	color: #1e9e6a;
}

.badge-amber {
	background: #fff4e0;
	color: #a35d00;
}

.badge-grey {
	background: #f0f1f4;
	color: var(--muted);
}

.badge-red {
	background: #fde9e6;
	color: var(--red);
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px 24px;
	padding: 24px 0;
}

.fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fact-label {
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fact-value {
	font-weight: 600;
	word-break: break-word;
}

.fact-primary {
	grid-column: 1 / -1;
}

.fact-primary .fact-value {
	font-size: 22px;
	color: var(--blue-deep);
}

.result-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.all-data {
	margin-top: 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.all-data table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.all-data th,
.all-data td {
	padding: 10px 16px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.all-data tr:last-child th,
.all-data tr:last-child td {
	border-bottom: 0;
}

.all-data th {
	width: 36%;
	background: var(--bg);
	color: var(--muted);
	font-weight: 500;
}

/* Ads */

.sponsored {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--muted-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ad-card {
	align-self: start;
	padding: 28px;
	background: linear-gradient(90deg, #edf2ff 0%, #eff9ff 100%);
	border: 1px solid #dfe8ff;
	border-radius: var(--radius);
}

.ad-card img {
	display: block;
	height: 30px;
	width: auto;
	margin-bottom: 14px;
}

.ad-card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.ad-card p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
}

.ad-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 48px;
	padding: 36px 40px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.ad-banner h2 {
	font-size: 24px;
	margin-bottom: 6px;
}

.ad-banner p {
	margin: 0;
	color: var(--muted);
	max-width: 560px;
}

.footer-ad {
	background: var(--gradient);
	color: var(--white);
}

.footer-ad-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 40px;
	padding-bottom: 40px;
}

.footer-ad .sponsored {
	color: rgba(255, 255, 255, 0.8);
}

.footer-ad h2 {
	font-size: 24px;
}

.footer-ad p {
	margin: 4px 0 0;
	opacity: 0.9;
}

/* Features */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.feature {
	padding: 28px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--bg-soft);
	font-size: 20px;
}

.feature h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* Footer */

.footer {
	padding: 28px 0 36px;
	background: var(--white);
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.footer p {
	margin: 0 0 6px;
}

.footer-meta {
	color: var(--muted-2);
}

/* Prose pages (terms) */

.prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.prose h1 {
	font-size: 32px;
	margin-bottom: 6px;
}

.prose h2 {
	font-size: 18px;
	margin: 28px 0 8px;
	color: var(--blue-deep);
}

.prose p {
	margin: 0 0 12px;
}

.prose.center {
	text-align: center;
}

/* Small screens */

@media (max-width: 800px) {
	.topbar-inner {
		height: auto;
		padding: 12px 0;
		flex-wrap: wrap;
	}

	.topnav {
		gap: 14px;
		font-size: 14px;
	}

	.hero {
		padding: 48px 0 80px;
	}

	.hero h1 {
		font-size: 28px;
	}

	.search-box {
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
		border-radius: 20px;
	}

	.search-icon {
		display: none;
	}

	.search-box input {
		text-align: center;
	}

	.keypad {
		white-space: normal;
	}

	.result {
		grid-template-columns: 1fr;
		margin-top: -56px;
	}

	.result-card {
		padding: 22px;
	}

	.result-number {
		font-size: 26px;
	}

	.ad-banner {
		padding: 28px 22px;
	}

	.prose {
		padding: 24px;
	}
}
