/**
 * RINGIN marketing homepage.
 * Page-layout rules only, every component here (.ringin-card, .ringin-btn,
 * .ringin-banner, .ringin-chip, .ringin-tag, etc.) already comes from
 * ringin-app.css, which is loaded on every app page including this one.
 */

.ringin-marketing {
	overflow-x: hidden;
}

/* ---------- Public header ---------- */
.ringin-app-header-inner--public {
	justify-content: space-between;
}

.ringin-app-header-inner--public .ringin-nav-side {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Public chrome runs full-bleed sections, so the shared main padding
   (32px 0 64px on .ringin-app-content) would double up with each
   section's own padding, turn it off here. */
.ringin-app-content--public {
	padding: 0;
}

/* ---------- Public footer ---------- */
.ringin-app-footer--public .ringin-app-container {
	justify-content: space-between;
	flex-wrap: wrap;
	row-gap: 8px;
}

.ringin-footer-links {
	display: flex;
	gap: 20px;
	margin-left: auto;
}

.ringin-footer-links a {
	font-size: 13px;
	font-weight: 600;
	color: var(--rg-text-soft);
}

.ringin-footer-links a:hover {
	color: var(--rg-primary);
}

/* ---------- Section rhythm ---------- */
.rgm-section { padding: 72px 0; }
.rgm-section-head { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.rgm-section-head h2 {
	margin-top: 12px;
	font-weight: 800;
	font-size: 34px;
	letter-spacing: -0.015em;
	color: var(--rg-dark);
}
.rgm-section-head h2 span { color: var(--rg-primary); }
.rgm-section-head p { margin-top: 10px; font-size: 15.5px; color: var(--rg-text-soft); line-height: 1.6; }

/* Fixed-count grids (not auto-fill) so 3- and 4-card rows always
   divide the row evenly instead of leaving a ragged empty column. */
.rgm-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rgm-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Hero ---------- */
.rgm-hero { position: relative; overflow: hidden; padding: 40px 0 76px; }
.rgm-hero::before {
	content: "";
	position: absolute;
	top: -220px; right: -180px;
	width: 560px; height: 560px;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 70%);
	pointer-events: none;
}
.rgm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.rgm-hero h1 {
	margin-top: 18px;
	font-weight: 800;
	font-size: 56px;
	line-height: 1.06;
	letter-spacing: -0.025em;
	color: var(--rg-dark);
}
.rgm-hero h1 span { color: var(--rg-primary); }
.rgm-hero-sub { margin-top: 18px; max-width: 460px; font-size: 17px; line-height: 1.65; color: var(--rg-text-soft); }
.rgm-hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rgm-hero-login { font-size: 14px; font-weight: 500; color: var(--rg-text-soft); }

.rgm-preview-card { box-shadow: var(--rg-shadow-lg); margin-bottom: 0; }
.rgm-live-dot {
	width: 6px; height: 6px; border-radius: 999px; background: var(--rg-primary);
	display: inline-block; animation: rgm-blink 1.6s ease-in-out infinite;
}
@keyframes rgm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Problem band ---------- */
.rgm-band { position: relative; overflow: hidden; background: var(--rg-light); padding: 56px 0; }
.rgm-band::before {
	content: "";
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 460px; height: 460px;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 70%);
	pointer-events: none;
}
.rgm-band .ringin-app-container { position: relative; z-index: 1; }
.rgm-band p {
	max-width: 680px; margin: 0 auto; text-align: center;
	font-weight: 700; font-size: 25px; line-height: 1.5;
	letter-spacing: -0.015em; color: var(--rg-dark);
}
.rgm-band p span { color: var(--rg-primary); }

/* ---------- How it works ---------- */
.rgm-step-dot {
	width: 40px; height: 40px; border-radius: 999px;
	background: var(--rg-primary); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 15px; margin-bottom: 16px;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.rgm-step-card { text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rgm-step-card:hover { transform: translateY(-3px); box-shadow: var(--rg-shadow-lg); border-color: #DCE9FE; }
.rgm-step-card h3 { min-height: 2.6em; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--rg-dark); letter-spacing: -0.005em; }
.rgm-step-card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--rg-text-soft); }

/* ---------- Features ---------- */
.rgm-feature-icon {
	width: 44px; height: 44px; border-radius: 999px;
	background: linear-gradient(135deg, var(--rg-light) 0%, #ffffff 100%);
	border: 1px solid #DCE9FE;
	color: var(--rg-primary);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 14px;
}
.rgm-feature-icon svg { width: 20px; height: 20px; }
.rgm-feature-card { text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rgm-feature-card:hover { transform: translateY(-3px); box-shadow: var(--rg-shadow-lg); border-color: #DCE9FE; }
.rgm-feature-card h3 { min-height: 2.4em; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--rg-dark); letter-spacing: -0.005em; }
.rgm-feature-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--rg-text-soft); }

/* ---------- Final CTA ---------- */
.rgm-final-cta {
	position: relative;
	overflow: hidden;
	text-align: center;
	border-radius: var(--rg-radius);
	padding: 76px 40px;
	background: linear-gradient(180deg, var(--rg-light) 0%, var(--rg-white) 100%);
	border: 1px solid var(--rg-border);
}
.rgm-final-cta::before {
	content: "";
	position: absolute;
	left: 50%; top: -170px;
	transform: translateX(-50%);
	width: 480px; height: 480px;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 70%);
	pointer-events: none;
}
.rgm-final-cta-icon {
	position: relative; z-index: 1;
	width: 60px; height: 60px; margin: 0 auto 22px;
	border-radius: 999px;
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	box-shadow: var(--rg-shadow);
	display: flex; align-items: center; justify-content: center;
	color: var(--rg-primary);
}
.rgm-final-cta-icon svg { width: 28px; height: 28px; }
.rgm-final-cta h2 {
	position: relative; z-index: 1;
	font-weight: 800;
	font-size: 34px;
	letter-spacing: -0.015em;
	color: var(--rg-dark);
}
.rgm-final-cta p {
	position: relative; z-index: 1;
	margin: 12px auto 0;
	max-width: 440px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rg-text-soft);
}
.rgm-final-cta .ringin-btn { position: relative; z-index: 1; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.rgm-hero-grid { grid-template-columns: 1fr; }
	.rgm-preview-card { max-width: 460px; }
	.rgm-hero h1 { font-size: 42px; }
	.rgm-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.rgm-hero { padding: 32px 0 48px; }
	.rgm-hero h1 { font-size: 34px; }
	.rgm-section { padding: 52px 0; }
	.rgm-section-head h2 { font-size: 26px; }
	.rgm-band p { font-size: 18px; }
	.ringin-next-game-hero { gap: 20px; }
	.ringin-availability-summary { max-width: none; width: 100%; }
	.rgm-steps-grid { grid-template-columns: 1fr; }
	.rgm-features-grid { grid-template-columns: 1fr; }
	.ringin-app-header-inner--public .ringin-nav-side { gap: 12px; }
	.ringin-app-footer--public .ringin-app-container { flex-direction: column; align-items: flex-start; }
	.ringin-footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ringin-marketing * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
