/*
Theme Name: PlaySmartSweeps
Theme URI: https://playsmartsweeps.com
Author: Better Media
Description: One-page sweepstakes casino offers landing page. Offers are managed as posts (Offers menu); landing page copy lives on the front page. No plugins required; uses Advanced Custom Fields (free) for the edit screens if it is active.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: playsmartsweeps
*/

:root {
	--pss-brand: #2A2FD4;
	--pss-cta: #16A34A;
	--pss-cta-shadow: #0F7A37;
	--pss-cta-ink: #FFFFFF;
	--pss-gold: #FFC83D;
	--pss-gold-deep: #E09A00;
	--pss-ink: #111B4A;
	--pss-muted: #4A5478;
	--pss-pale: #EEF1FF;
	--pss-navy: #0E1640;
	--pss-display: 'Sora', system-ui, sans-serif;
	--pss-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--pss-navy);
	color: var(--pss-ink);
	font-family: var(--pss-body);
	font-size: 16px;
	line-height: 1.5;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.pss-wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pss-gold { color: var(--pss-gold); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

a:focus-visible, .pss-btn:focus-visible { outline: 3px solid var(--pss-gold); outline-offset: 3px; }

/* ---- Disclosure bar ---- */
.pss-disclosure {
	background: var(--pss-navy); color: #DDE1FF;
	font-size: 13px; text-align: center; padding: 10px 20px;
}

/* ---- Indigo dotted bands ---- */
.pss-band {
	background-color: var(--pss-brand);
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	color: #fff;
}
.pss-band--top { overflow: hidden; }

/* ---- Header ---- */
.pss-header {
	padding-top: 18px; padding-bottom: 18px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.pss-logo {
	display: flex; align-items: center; gap: 12px;
	color: #fff; text-decoration: none;
	font-family: var(--pss-display); font-weight: 800; font-size: clamp(24px, 6.4vw, 35px); line-height: 1.1;
}
.pss-logo__coin {
	width: clamp(38px, 9.5vw, 52px); height: clamp(38px, 9.5vw, 52px); flex: none; border-radius: 50%;
	background: var(--pss-gold); border: 4px solid var(--pss-gold-deep); color: var(--pss-ink);
	display: flex; align-items: center; justify-content: center;
}
.pss-logo__coin svg { width: 52%; height: 52%; }
.pss-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: 15px; }
.pss-nav a { color: #fff; text-decoration: none; padding: 12px 0; }
.pss-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Hero ---- */
.pss-hero { position: relative; padding-top: 36px; padding-bottom: 96px; }
.pss-hero__text { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.pss-hero__badge {
	align-self: flex-start;
	background: var(--pss-gold); color: var(--pss-ink);
	font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	border-radius: 999px; padding: 6px 14px;
}
.pss-hero h1 {
	font-family: var(--pss-display); font-weight: 800;
	font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.02em;
	text-wrap: balance;
}
.pss-hero__intro { font-size: 19px; color: #E6E9FF; max-width: 560px; }
.pss-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 4px; font-weight: 700; font-size: 15px; }
.pss-hero__trust li {
	display: flex; align-items: center; gap: 8px;
	background: #fff; color: var(--pss-ink); border-radius: 999px; padding: 8px 14px;
}
.pss-hero__trust svg { color: #0A8A4C; flex: none; }
.pss-hero__art { position: absolute; right: 20px; top: 0; }

/* ---- Offers ---- */
.pss-offers-bg { display: flow-root; background: var(--pss-pale); }
.pss-offers {
	position: relative; margin-top: -52px; padding-bottom: 72px;
	display: flex; flex-direction: column; gap: 18px;
}
.pss-offer {
	position: relative;
	background: #fff; border-radius: 20px; padding: 24px;
	box-shadow: 0 6px 20px rgba(17, 27, 74, 0.08);
	display: grid; align-items: center; gap: 18px 28px;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) 72px minmax(190px, 0.8fr);
	grid-template-areas: "main deal score cta";
}
.pss-offer--top {
	border: 3px solid var(--pss-gold); padding-top: 32px;
	box-shadow: 0 10px 28px rgba(17, 27, 74, 0.14);
}
.pss-offer__ribbon {
	position: absolute; top: -15px; left: 22px;
	display: flex; align-items: center; gap: 6px;
	background: var(--pss-gold); color: var(--pss-ink);
	font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	border-radius: 999px; padding: 5px 14px;
}
.pss-offer__main { grid-area: main; display: flex; align-items: center; gap: 16px; min-width: 0; }
.pss-offer__rank {
	width: 42px; height: 42px; flex: none; border-radius: 50%;
	background: #DDE2FF; color: var(--pss-ink);
	font-family: var(--pss-display); font-weight: 800; font-size: 18px;
	display: flex; align-items: center; justify-content: center;
}
.pss-offer--top .pss-offer__rank { background: var(--pss-gold); border: 3px solid var(--pss-gold-deep); }
.pss-offer__logo { width: 80px; height: 80px; flex: none; border-radius: 16px; object-fit: cover; display: block; }
.pss-offer__logo--empty {
	background: var(--pss-pale); border: 1px solid #D3D9F7; color: var(--pss-muted);
	font-family: var(--pss-display); font-weight: 800; font-size: 28px;
	display: flex; align-items: center; justify-content: center;
}
.pss-offer__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pss-offer__name { font-family: var(--pss-display); font-weight: 700; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.pss-offer__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pss-offer__chips li { background: var(--pss-pale); font-size: 13px; font-weight: 600; border-radius: 10px; padding: 3px 10px; }
.pss-offer__deal { grid-area: deal; background: #FFF4CC; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.pss-offer__deal-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6B4B00; }
.pss-offer__deal-text { font-family: var(--pss-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.pss-offer__score { grid-area: score; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pss-offer__score-ring {
	width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--pss-brand);
	font-family: var(--pss-display); font-weight: 800; font-size: 17px;
	display: flex; align-items: center; justify-content: center;
}
.pss-offer__score-label { font-size: 12px; font-weight: 600; color: var(--pss-muted); white-space: nowrap; }
.pss-offer__cta { grid-area: cta; display: flex; flex-direction: column; gap: 12px; }
.pss-offer__terms { font-size: 12px; color: var(--pss-muted); text-align: center; }

.pss-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--pss-cta); color: var(--pss-cta-ink);
	font-weight: 800; font-size: 17px; text-decoration: none; text-align: center;
	border-radius: 12px; padding: 14px 20px; min-height: 52px;
	box-shadow: 0 4px 0 var(--pss-cta-shadow);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pss-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--pss-cta-shadow); }
.pss-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pss-cta-shadow); }
.pss-btn svg { flex: none; }

/* ---- How it works ---- */
.pss-how { padding: 64px 0; }
.pss-h2 { font-family: var(--pss-display); font-weight: 800; font-size: 32px; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 28px; }
.pss-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pss-step { background: #fff; color: var(--pss-ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pss-step__num {
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--pss-gold); border: 3px solid var(--pss-gold-deep);
	font-family: var(--pss-display); font-weight: 800; font-size: 18px;
	display: flex; align-items: center; justify-content: center;
}
.pss-step h3 { font-family: var(--pss-display); font-weight: 700; font-size: 19px; }
.pss-step p { color: var(--pss-muted); }

/* ---- FAQ ---- */
.pss-faq-bg { background: var(--pss-pale); }
.pss-faq { padding-top: 64px; padding-bottom: 64px; }
.pss-faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pss-faq__item { background: #fff; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pss-faq__item h3 { font-size: 18px; font-weight: 700; }
.pss-faq__item p { color: var(--pss-muted); }

/* ---- Footer ---- */
.pss-footer { background: var(--pss-navy); padding: 44px 0; color: #C9CFEF; font-size: 14px; }
.pss-footer__inner { display: flex; flex-direction: column; gap: 18px; }
.pss-footer__inner p { max-width: 880px; }
.pss-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.pss-footer__brand { font-family: var(--pss-display); font-weight: 800; font-size: 18px; color: #fff; }
.pss-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 600; }
.pss-footer__nav a { display: inline-block; color: #fff; padding: 12px 0; }

/* ---- Ordinary pages (privacy, terms, contact) ---- */
.pss-page-title { padding-top: 28px; padding-bottom: 48px; }
.pss-page-title h1 { font-family: var(--pss-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.pss-content-bg { background: var(--pss-pale); }
.pss-content { max-width: 800px; padding-top: 48px; padding-bottom: 64px; }
.pss-content > * + * { margin-top: 1em; }
.pss-content h2, .pss-content h3 { font-family: var(--pss-display); margin-top: 1.6em; line-height: 1.2; }
.pss-content ul { list-style: disc; padding-left: 1.3em; }
.pss-content a { color: var(--pss-brand); }

/* ---- Tablet: hide the coin artwork, stack the offer rows ---- */
@media (max-width: 1040px) {
	.pss-hero__art { display: none; }
}

@media (max-width: 900px) {
	.pss-offer {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"main score"
			"deal deal"
			"cta cta";
		padding: 20px;
		gap: 16px;
	}
	.pss-offer--top { padding-top: 30px; }
	.pss-steps { grid-template-columns: minmax(0, 1fr); }
	.pss-faq__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Phone ---- */
@media (max-width: 520px) {
	.pss-wrap { padding-left: 16px; padding-right: 16px; }
	.pss-nav { display: none; }
	.pss-hero { padding-top: 20px; padding-bottom: 84px; }
	.pss-hero__intro { font-size: 17px; }
	.pss-hero__trust { font-size: 14px; }
	.pss-offer__main { gap: 12px; }
	.pss-offer__rank { width: 34px; height: 34px; font-size: 15px; }
	.pss-offer__logo { width: 64px; height: 64px; border-radius: 14px; }
	.pss-offer__name { font-size: 17px; }
	.pss-offer__score-ring { width: 50px; height: 50px; font-size: 15px; }
	.pss-h2 { font-size: 27px; }
	.pss-how, .pss-faq { padding-top: 48px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pss-btn { transition: none; }
}
