/* ==========================================================================
   Peptide Protocol SA — Landing Page
   Decode the Signal. Design the Protocol.
   ========================================================================== */

/* Design Tokens */
:root {
	--ppsa-navy: #0B1F3A;
	--ppsa-navy-2: #112948;
	--ppsa-navy-3: #1a3556;
	--ppsa-teal: #0E8C7A;
	--ppsa-teal-bright: #14A892;
	--ppsa-white: #FFFFFF;
	--ppsa-cream: #FAF8F4;
	--ppsa-paper: #F4F2EC;
	--ppsa-mist: #C8D7E1;
	--ppsa-stone: #8C919B;
	--ppsa-line: rgba(255, 255, 255, 0.08);

	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'EB Garamond', Georgia, serif;
	--font-ui: 'Josefin Sans', -apple-system, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

	--dur: 0.3s;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Screen-reader-only */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; padding: 0;
	position: absolute !important; overflow: hidden; word-wrap: normal !important;
}
.skip-link:focus { left: 6px; top: 7px; z-index: 1000; clip: auto; clip-path: none; width: auto; height: auto; padding: 0.5rem 1rem; background: var(--ppsa-white); color: var(--ppsa-navy); }

/* Body / page background */
body.landing {
	background: var(--ppsa-navy);
	color: var(--ppsa-mist);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	min-height: 100vh;
	min-height: 100svh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Shell — full-viewport, centred */
.landing-shell {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	overflow: hidden;
}

/* Subtle navy gradient grid in background */
.landing-bg-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 140, 122, 0.08), transparent 70%),
		radial-gradient(ellipse 50% 40% at 50% 100%, rgba(14, 140, 122, 0.04), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
	background-position: center top, center bottom, center, center;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* The card */
.landing-card {
	position: relative;
	z-index: 1;
	max-width: 680px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* Logo */
.landing-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.landing-logo img,
.landing-logo .custom-logo {
	width: auto;
	max-width: 460px;
	height: auto;
	max-height: 140px;
}

@media (max-width: 640px) {
	.landing-logo img,
	.landing-logo .custom-logo {
		max-width: 100%;
		max-height: 100px;
	}
}

/* Copy block */
.landing-copy {
	text-align: center;
}

.landing-headline {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.875rem, 5vw, 2.75rem);
	line-height: 1.15;
	color: var(--ppsa-white);
	margin: 0 0 1.5rem;
	letter-spacing: -0.01em;
}

.landing-headline em {
	font-style: italic;
	color: var(--ppsa-teal-bright);
	font-weight: 500;
}

.landing-lede {
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
	line-height: 1.6;
	color: var(--ppsa-mist);
	margin: 0;
	max-width: 56ch;
	margin-inline: auto;
}

/* Newsletter section */
.landing-newsletter {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--ppsa-line);
	border-radius: 2px;
	padding: 2.5rem 2rem;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
	.landing-newsletter {
		padding: 2rem 1.25rem;
	}
}

.landing-newsletter__head {
	text-align: center;
	margin-bottom: 1.75rem;
}

.landing-newsletter__kicker {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ppsa-teal-bright);
	margin-bottom: 0.875rem;
}

.landing-newsletter__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.375rem, 3.5vw, 1.625rem);
	line-height: 1.2;
	color: var(--ppsa-white);
	margin: 0 0 0.625rem;
}

.landing-newsletter__desc {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ppsa-mist);
	margin: 0;
	max-width: 44ch;
	margin-inline: auto;
}

.landing-newsletter__form {
	margin: 0 auto;
	max-width: 480px;
}

.landing-newsletter__form iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* Fallback form (used when no Beehiiv URL set) */
.landing-fallback-form {
	display: flex;
	gap: 0;
	background: var(--ppsa-white);
	border-radius: 2px;
	overflow: hidden;
	margin: 0 auto;
}

.landing-fallback-form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.875rem 1.125rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ppsa-navy);
	outline: none;
}

.landing-fallback-form input[type="email"]::placeholder {
	color: var(--ppsa-stone);
}

.landing-fallback-form button {
	border: 0;
	background: var(--ppsa-navy);
	color: var(--ppsa-white);
	padding: 0 1.5rem;
	font-family: var(--font-ui);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	transition: background var(--dur) var(--ease);
}

.landing-fallback-form button:hover {
	background: var(--ppsa-teal);
}

@media (max-width: 480px) {
	.landing-fallback-form {
		flex-direction: column;
	}
	.landing-fallback-form button {
		padding: 0.875rem;
	}
}

.landing-admin-notice {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: rgba(20, 168, 146, 0.1);
	border-left: 2px solid var(--ppsa-teal-bright);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--ppsa-teal-bright);
	letter-spacing: 0.02em;
}

.landing-admin-notice a {
	color: var(--ppsa-white);
	text-decoration: underline;
}

.landing-newsletter__small {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ppsa-stone);
	margin: 1.75rem 0 0;
	text-align: center;
}

/* Footer */
.landing-footer {
	text-align: center;
	color: var(--ppsa-stone);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.landing-footer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.7rem;
}

.landing-footer__dot {
	color: var(--ppsa-navy-3);
}

.landing-footer__instagram {
	color: var(--ppsa-teal-bright);
	transition: color var(--dur) var(--ease);
}

.landing-footer__instagram:hover {
	color: var(--ppsa-white);
}

.landing-footer__disclaimer {
	max-width: 56ch;
	margin: 0 auto;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-style: italic;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.55;
	color: var(--ppsa-stone);
	opacity: 0.7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
