/* ============================================================
   Phtoll Newsletter — newsletter.css
   Tokens match phtoll-theme: --primary #EAB308, --dark #0F172A
   ============================================================ */

/* ── Shared tokens ──────────────────────────────────────────── */

.pnl-subscribe-page,
.pnl-hp-section,
.pnl-wrap {
	--pnl-primary:  #EAB308;
	--pnl-primary2: #CA8A04;
	--pnl-teal:     #00C9A7;
	--pnl-dark:     #0F172A;
	--pnl-surface:  #1E293B;
	--pnl-surface2: #263348;
	--pnl-border:   #334155;
	--pnl-border2:  rgba(255,255,255,0.06);
	--pnl-text:     #e2e8f0;
	--pnl-muted:    #94a3b8;
	--pnl-radius:   12px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   SUBSCRIBE PAGE — full-bleed dark layout
   ============================================================ */

.pnl-subscribe-page {
	background-color: var(--pnl-dark);
	background-image: radial-gradient(rgba(234,179,8,.1) 1px, transparent 1px);
	background-size: 28px 28px;
	min-height: calc(100vh - 64px);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: 6rem 1.5rem;
}

/* Fade dot grid to edges */
.pnl-subscribe-page::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, var(--pnl-dark) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Amber radial glow */
.pnl-glow {
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(234,179,8,.07) 0%, transparent 65%);
	pointer-events: none;
	z-index: 2;
}

.pnl-subscribe-inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 5rem;
	max-width: 1080px;
	margin: 0 auto;
	width: 100%;
}

/* ── Left column: copy ──────────────────────────────────────── */

.pnl-subscribe-copy {
	flex: 1;
	min-width: 0;
}

.pnl-eyebrow {
	display: inline-block;
	color: var(--pnl-primary);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
	padding: .3rem .75rem;
	background: rgba(234,179,8,.1);
	border: 1px solid rgba(234,179,8,.2);
	border-radius: 100px;
}

.pnl-subscribe-h1 {
	color: #fff;
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.025em;
	margin: 0 0 1.25rem;
}

.pnl-subscribe-lead {
	color: var(--pnl-muted);
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0 0 2rem;
	max-width: 420px;
}

.pnl-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .85rem;
}

.pnl-benefits li {
	display: flex;
	align-items: center;
	gap: .7rem;
	color: var(--pnl-text);
	font-size: .95rem;
}

.pnl-benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(234,179,8,.12);
	color: var(--pnl-primary);
	border: 1px solid rgba(234,179,8,.2);
}

/* ── Right column: form ─────────────────────────────────────── */

.pnl-subscribe-form-col {
	flex: 0 0 440px;
	max-width: 440px;
}

/* Override .pnl-wrap centering constraints inside the column */
.pnl-subscribe-form-col .pnl-wrap {
	max-width: none;
	padding: 0;
}

/* ── Honeypot: visually hidden from real users ──────────────── */

.pnl-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
	pointer-events: none;
}

/* ── reCAPTCHA widget spacing ───────────────────────────────── */

.pnl-rc-widget { margin-top: -.1rem; }

/* ============================================================
   FORM CARD — used on /subscribe page and via shortcode
   ============================================================ */

.pnl-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 2rem 0;
}

.pnl-form {
	position: relative;
	background: rgba(30, 41, 59, 0.65);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid var(--pnl-border2);
	border-radius: var(--pnl-radius);

	/* Layered shadow for depth */
	box-shadow:
		0 0 0 1px rgba(234,179,8,.06),
		0 8px 32px rgba(0,0,0,.45),
		0 2px 8px rgba(0,0,0,.25),
		inset 0 1px 0 rgba(255,255,255,.04);

	padding: 2.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Subtle amber top-edge accent line */
.pnl-form::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(234,179,8,.5), transparent);
	border-radius: 1px;
}

.pnl-row {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.pnl-label {
	font-size: .78rem;
	font-weight: 600;
	color: var(--pnl-text);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.pnl-opt {
	font-weight: 400;
	color: var(--pnl-muted);
	text-transform: none;
	letter-spacing: 0;
}

.pnl-input {
	background: rgba(15,23,42,.7);
	border: 1px solid var(--pnl-border);
	border-radius: 8px;
	color: var(--pnl-text);
	font-size: .95rem;
	font-family: inherit;
	padding: .7rem 1rem;
	width: 100%;
	transition: border-color .2s, box-shadow .2s;
	outline: none;
}

.pnl-input::placeholder { color: var(--pnl-muted); opacity: 1; }

.pnl-input:focus {
	border-color: var(--pnl-primary);
	box-shadow: 0 0 0 3px rgba(234,179,8,.12);
}

/* ── Button ─────────────────────────────────────────────────── */

.pnl-btn {
	background: var(--pnl-primary);
	border: none;
	border-radius: 8px;
	color: #0F172A;
	cursor: pointer;
	font-size: .9rem;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: .07em;
	padding: .85rem 1.5rem;
	text-transform: uppercase;
	width: 100%;
	transition: background .15s, transform .1s, box-shadow .15s;
	box-shadow: 0 4px 16px rgba(234,179,8,.25);
}

.pnl-btn:hover {
	background: var(--pnl-primary2);
	box-shadow: 0 6px 20px rgba(234,179,8,.35);
}

.pnl-btn:active  { transform: translateY(1px); }
.pnl-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Status messages ────────────────────────────────────────── */

.pnl-msg {
	font-size: .875rem;
	min-height: 1.2em;
	text-align: center;
	margin: 0;
	line-height: 1.5;
}

.pnl-msg.success { color: #4ade80; }
.pnl-msg.error   { color: #f87171; }

/* ── Unsubscribe confirmation notice ────────────────────────── */

.pnl-notice {
	background: var(--pnl-surface);
	border: 1px solid var(--pnl-border);
	border-radius: var(--pnl-radius);
	color: var(--pnl-text);
	padding: 1.1rem 1.4rem;
	font-size: .95rem;
	margin: 0;
}

.pnl-notice--success {
	border-color: rgba(74,222,128,.3);
	color: #4ade80;
	background: rgba(74,222,128,.05);
}

/* ============================================================
   HOMEPAGE SECTION — full-width strip before footer
   ============================================================ */

.pnl-hp-section {
	background: var(--pnl-dark);
	border-top: 1px solid var(--pnl-border);
	padding: 4rem 1.5rem;
	position: relative;
	overflow: hidden;
}

/* Subtle dot grid behind the strip */
.pnl-hp-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(234,179,8,.07) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
	mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, black 20%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, black 20%, transparent 80%);
}

.pnl-hp-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 3rem;
	max-width: 1100px;
	margin: 0 auto;
}

.pnl-hp-copy {
	flex: 1;
	min-width: 0;
}

.pnl-hp-section .pnl-eyebrow {
	font-size: .7rem;
	margin-bottom: .75rem;
}

.pnl-hp-title {
	color: #fff;
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	margin: 0 0 .6rem;
}

.pnl-hp-lead {
	color: var(--pnl-muted);
	font-size: .95rem;
	line-height: 1.6;
	margin: 0;
}

.pnl-hp-form-wrap {
	flex: 0 0 480px;
	max-width: 480px;
}

/* Default: inline row (no reCAPTCHA) */
.pnl-hp-form {
	display: flex;
	gap: .6rem;
	align-items: stretch;
}

.pnl-hp-inputs {
	display: contents; /* children participate in parent flex */
}

.pnl-hp-form .pnl-input {
	flex: 1;
	min-width: 0;
}

.pnl-hp-form .pnl-btn {
	flex-shrink: 0;
	width: auto;
	padding-left: 1.4rem;
	padding-right: 1.4rem;
	white-space: nowrap;
}

/* When reCAPTCHA is present: stack inputs row / captcha / button */
.pnl-hp-form--rc {
	flex-direction: column;
	gap: .75rem;
}

.pnl-hp-form--rc .pnl-hp-inputs {
	display: flex;
	gap: .6rem;
}

.pnl-hp-form--rc .pnl-hp-inputs .pnl-input {
	flex: 1;
	min-width: 0;
}

.pnl-hp-form--rc .pnl-rc-widget {
	margin: 0;
}

.pnl-hp-form--rc .pnl-btn {
	width: 100%;
}

.pnl-hp-msg {
	margin: .6rem 0 0;
	text-align: left;
	min-height: 1em;
}

.pnl-hp-disclaimer {
	color: var(--pnl-muted);
	font-size: .75rem;
	margin: .5rem 0 0;
	opacity: .75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
	.pnl-subscribe-inner {
		flex-direction: column;
		gap: 3rem;
		padding-top: 1rem;
	}

	.pnl-subscribe-form-col {
		flex: none;
		width: 100%;
		max-width: 480px;
	}

	.pnl-subscribe-h1 { font-size: 2.5rem; }
	.pnl-subscribe-lead { max-width: none; }

	.pnl-hp-inner {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}

	.pnl-hp-form-wrap {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.pnl-hp-msg { text-align: center; }
}

@media (max-width: 560px) {
	.pnl-subscribe-page { padding: 4rem 1.25rem; }
	.pnl-form { padding: 1.75rem 1.25rem; }
	.pnl-subscribe-h1 { font-size: 2.1rem; }

	.pnl-hp-form {
		flex-direction: column;
	}

	.pnl-hp-form .pnl-btn {
		width: 100%;
	}
}
