/*
Theme Name: Coherent Lab Landing
Theme URI: https://coherentsupply.com
Author: Coherent Lab Supply
Description: Standalone single-page marketing landing theme for Coherent Lab Supply. Same templates as the POET Labs landing theme, restyled to the Coherent visual identity (coherentsupply.com). Plain CSS, no build step, no JS framework.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: poet-landing
*/

/* ==================== Tokens ====================
   Coherent Lab Supply identity, taken from coherentsupply.com:
   electric blue primary, ink near-black, sky tints, cyan highlight,
   Bebas Neue display / Lora heading / Albert Sans body. */
:root {
	--color-primary:        #006CE0;   /* Coherent blue — buttons, links */
	--color-primary-hover:  #0059BA;
	--color-brand:          #017EFF;
	--color-accent:         #006CE0;
	--color-accent-hover:   #0059BA;
	--color-accent-muted:   #EAF4FF;   /* sky tint */
	--color-light-blue:     #CFE6FF;
	--color-cyan:           #70E0FE;
	--color-ink:            #0F161E;
	--color-ink-2:          #16212C;
	--color-yellow:         #FFE23F;
	--color-success:        #1F7A3D;
	--color-success-muted:  #E7F5EC;
	--color-background:     #FFFFFF;
	--color-soft:           #F4F7FA;
	--color-surface:        #FFFFFF;
	--color-borders:        #E3E8EE;
	--color-heading:        #0F161E;
	--color-body-text:      #33404D;
	--color-muted-text:     #5B6570;
	--font-display:         'Bebas Neue', Impact, sans-serif;
	--font-heading:         'Lora', Georgia, serif;
	--font-sans:            'Albert Sans', ui-sans-serif, system-ui, sans-serif;
	--radius-card:          24px;
	--radius-field:         12px;
	--container:            1344px;
	--header-h:             clamp(60px, 9vh, 76px);
}

/* ==================== Reset ==================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-body-text);
	background-color: var(--color-background);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, p { margin: 0; }
button, .btn { font-family: inherit; }

.container {
	max-width: var(--container);
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 1024px) {
	.container { padding: 0 32px; }
}

.icon svg { display: block; }

/* ==================== Homepage viewport fit ====================
   Header + hero fill one viewport. Scoped to body.home (WordPress's own
   front-page body class). The header floats over the hero's sky
   background, the same way it does on coherentsupply.com. */
body.home {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* ==================== Buttons (Coherent .coh-btn) ==================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--color-primary);
	border-radius: 9999px;
	background: var(--color-primary);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn--lg {
	min-height: clamp(46px, 6.2vh, 54px);
	padding: 0 28px;
	font-size: 16px;
}
.btn--glow { box-shadow: 0 8px 24px rgba(1, 126, 255, 0.28); }
.btn--outline {
	background: #fff;
	color: var(--color-ink);
	border-color: #CBD5E1;
	font-weight: 600;
}
.btn--outline:hover {
	background: #fff;
	color: var(--color-ink);
	border-color: var(--color-ink);
}
.btn--white {
	background: #fff;
	color: var(--color-ink);
	border-color: #fff;
}
.btn--white:hover {
	background: var(--color-accent-muted);
	color: var(--color-ink);
	border-color: var(--color-accent-muted);
}
.btn--hero { margin-top: 0; }

/* ==================== Header ==================== */
.site-header {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--color-borders);
	flex-shrink: 0;
	position: relative;
	z-index: 10;
}
body.home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: rgba(15, 22, 30, 0.06);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}
.site-header__logo,
.site-header__logo a,
.site-header__logo img {
	display: block;
	max-height: clamp(30px, 4.6vh, 40px);
	width: auto;
}
.site-header .btn {
	min-height: 44px;
	padding: 0 20px;
	font-size: 14px;
}

/* ==================== Hero (Coherent .coh-hero) ==================== */
.hero {
	flex: 1 0 auto;
	display: flex;
	min-height: 100svh;
	background-color: var(--color-soft);
	background-image: url('assets/img/section-bg.webp');
	background-size: cover;
	background-position: 50% 50%;
	border-bottom: 1px solid var(--color-borders);
	overflow: hidden;
}
.hero__inner {
	width: 100%;
	padding-top: calc(var(--header-h) + clamp(14px, 3vh, 28px));
	padding-bottom: clamp(16px, 3vh, 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 2vh, 22px);
	text-align: center;
}
.hero__copy {
	display: contents; /* mobile/tablet: children join the stacked flow */
}

.hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--color-light-blue);
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--color-ink);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
@media (min-width: 640px) {
	.hero__chip { padding: 7px 14px; font-size: 13px; }
}
.hero__chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--color-brand);
	flex-shrink: 0;
}

.hero__heading {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 5vw + 2vh, 5.75rem);
	line-height: 0.9;
	letter-spacing: 0.01em;
	color: var(--color-ink);
	margin: 0;
}
.hero__heading-accent { color: var(--color-primary); }

.hero__subtitle {
	max-width: 560px;
	font-size: clamp(14px, 1vw + 0.5vh, 18px);
	line-height: 1.55;
	color: var(--color-body-text);
	margin: 0;
}

.hero__image-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 0;
}
.hero__image-wrap img {
	width: auto;
	height: auto;
	max-width: min(100%, 640px);
	max-height: clamp(150px, 30vh, 420px);
	object-fit: contain;
	filter: drop-shadow(0 24px 40px rgba(15, 22, 30, 0.14));
}
.hero__image-placeholder {
	width: 100%;
	max-width: 380px;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card);
	border: 1px dashed var(--color-light-blue);
	background: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--color-muted-text);
	text-align: center;
	padding: 24px;
}

.hero__cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
}
@media (max-width: 639px) {
	.hero__cta-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 440px;
	}
	.hero__cta-row .btn { padding-inline: 14px; font-size: 15px; }
}

/* Stat tiles (Coherent .coh-hero__stats) — replaces the old trust row */
.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 440px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: clamp(7px, 1.1vh, 10px) 10px;
	border: 1px solid #E3EEF9;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--color-muted-text);
	font-size: 12px;
	line-height: 1.25;
	text-align: left;
}
.hero__stats strong {
	font-family: var(--font-heading);
	font-size: clamp(16px, 1.2vw + 0.6vh, 19px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-ink);
}
.hero__stats .is-dark {
	background: var(--color-ink);
	border-color: var(--color-ink);
	color: #C5CCD3;
}
.hero__stats .is-dark strong { color: var(--color-cyan); }
@media (min-width: 640px) {
	.hero__stats { max-width: 480px; }
}

/* Mobile/tablet order: chip, heading, subtitle, image, CTAs, stats */
@media (max-width: 1023px) {
	.hero__chip     { order: 1; }
	.hero__heading  { order: 2; }
	.hero__subtitle { order: 3; }
	.hero__image-wrap { order: 4; }
	.hero__cta-row  { order: 5; }
	.hero__stats    { order: 6; }
}

/* Desktop: two columns — copy left, product image right */
@media (min-width: 1024px) {
	.hero {
		height: 100svh;
		min-height: 620px;
		max-height: 1000px;
	}
	.hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		align-items: center;
		gap: 32px;
		text-align: left;
	}
	.hero__copy {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: clamp(14px, 2.2vh, 20px);
	}
	.hero__cta-row { justify-content: flex-start; }
	.hero__stats { max-width: 560px; }
	.hero__image-wrap { height: 100%; }
	.hero__image-wrap img {
		max-width: 100%;
		max-height: calc(100svh - var(--header-h) - 80px);
	}
}
@media (min-width: 1440px) {
	.hero__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
/* Short laptop screens: tighten so everything stays in one viewport */
@media (min-width: 1024px) and (max-height: 760px) {
	.hero__heading { font-size: clamp(2.6rem, 3.6vw + 2vh, 4.5rem); }
	.hero__stats li { padding: 6px 10px; }
}

/* ==================== Footer (Coherent .coh-footer) ==================== */
.site-footer {
	background-color: var(--color-soft);
	background-image: url('assets/img/footer-bg.webp');
	background-size: cover;
	background-position: 50%;
	color: var(--color-body-text);
}
.site-footer > .container {
	padding-top: 64px;
	padding-bottom: 8px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}
.site-footer__brand {
	flex: 1.4 1 280px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.site-footer__logo-img,
.site-footer__logo-img a,
.site-footer__logo-img img {
	display: block;
	max-height: 44px;
	width: auto;
	height: auto;
	align-self: flex-start;
	object-fit: contain;
}
.site-footer__blurb {
	max-width: 320px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--color-body-text);
}

.site-footer__col {
	flex: 1 1 150px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.site-footer__col-title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-ink);
	margin: 0 0 8px;
}
.site-footer__col a {
	display: flex;
	align-items: center;
	min-height: 32px;
	width: fit-content;
	font-size: 15px;
	color: #2A3642;
	text-decoration: none;
	transition: color 0.15s ease;
}
.site-footer__col a:hover { color: var(--color-primary); }

.site-footer__contact-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	font-size: 15px;
	line-height: 1.5;
	color: #2A3642;
}
.site-footer__contact-line .icon {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--color-primary);
}
.site-footer__contact-line a {
	min-height: 0;
	display: inline;
	overflow-wrap: anywhere;
}
.site-footer__contact {
	flex-basis: 220px;
}
.site-footer__contact-line span:last-child,
.site-footer__contact-line a { min-width: 0; }

/* Research-use notice box */
.site-footer__legal {
	padding: 16px 20px;
	border: 1px solid rgba(15, 22, 30, 0.10);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
}
.site-footer__legal-title {
	font-weight: 700;
	font-size: 13px;
	color: var(--color-heading);
	margin: 0 0 8px;
}
.site-footer__disclaimer {
	font-size: 13px;
	line-height: 1.65;
	color: var(--color-body-text);
}
.site-footer__disclaimer p { margin: 0 0 10px; }
.site-footer__disclaimer p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
	.site-footer__disclaimer { column-count: 2; column-gap: 40px; }
}

.site-footer__bottom {
	padding: 0 0 32px;
}
.site-footer__bottom .container {
	border-top: 1px solid rgba(15, 22, 30, 0.10);
	padding-top: 20px;
}
.site-footer__copy {
	font-size: 13px;
	color: var(--color-body-text);
	text-align: left;
}

/* ==================== Legal / Policy pages (template-legal.php) ==================== */
.legal {
	padding: 48px 0 80px;
}

.legal__header {
	max-width: 780px;
	margin: 0 auto 40px;
	text-align: center;
}
.legal__header .eyebrow {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 10px;
}
.legal__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-heading);
	margin: 0 0 10px;
}
.legal__updated {
	font-size: 13px;
	color: var(--color-muted-text);
	margin: 0;
}

.legal__content--centered {
	max-width: 780px;
	margin: 0 auto;
}

/* Two-column layout (TOC sidebar + content) only on wider screens */
@media (min-width: 1024px) {
	.legal__layout {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}
}

.legal__toc {
	margin-bottom: 32px;
}
@media (min-width: 1024px) {
	.legal__toc {
		position: sticky;
		top: 100px;
		margin-bottom: 0;
	}
}
.legal__toc-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-heading);
	margin: 0 0 14px;
}
.legal__toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-left: 2px solid var(--color-borders);
}
.legal__toc-item a {
	display: block;
	padding: 2px 0 2px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 13px;
	color: var(--color-body-text);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.legal__toc-item a:hover {
	color: var(--color-accent);
	border-left-color: var(--color-accent);
}
.legal__toc-item--h3 a {
	padding-left: 26px;
	font-size: 12.5px;
	color: var(--color-muted-text);
}

/* Prose styling for page content */
.page-content {
	color: var(--color-body-text);
	font-size: 15px;
	line-height: 1.7;
}
.page-content h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.01em;
	color: var(--color-heading);
	margin: 40px 0 16px;
	scroll-margin-top: 100px;
}
.page-content h2:first-child {
	margin-top: 0;
}
.page-content h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--color-heading);
	margin: 32px 0 12px;
	scroll-margin-top: 100px;
}
.page-content h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--color-heading);
	margin: 24px 0 10px;
}
.page-content p {
	margin: 0 0 16px;
}
.page-content a {
	color: var(--color-accent);
	text-decoration: underline;
}
.page-content strong {
	font-weight: 700;
	color: var(--color-heading);
}
.page-content ul,
.page-content ol {
	margin: 0 0 16px;
	padding-left: 22px;
}
.page-content li {
	margin-bottom: 6px;
}
.page-content blockquote {
	margin: 20px 0;
	padding: 12px 20px;
	border-left: 3px solid var(--color-accent);
	background: var(--color-accent-muted);
	color: var(--color-body-text);
	font-style: italic;
}
.page-content hr {
	border: none;
	border-top: 1px solid var(--color-borders);
	margin: 32px 0;
}
.page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}
.page-content th,
.page-content td {
	padding: 10px 12px;
	border: 1px solid var(--color-borders);
	text-align: left;
}
.page-content th {
	background: var(--color-accent-muted);
	font-weight: 700;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.page-content code {
	background: rgba(0, 108, 224, 0.08);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
	color: var(--color-accent-hover);
}

/* ==================== Contact page (template-contact.php) ==================== */
.contact {
	padding: 48px 0 80px;
}
.contact__header {
	max-width: 780px;
	margin: 0 auto 40px;
	text-align: center;
}
.contact__header .eyebrow {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 10px;
}
.contact__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-heading);
	margin: 0;
}

.contact__layout {
	max-width: 1040px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
@media (min-width: 900px) {
	.contact__layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}
	.contact__details {
		flex: 0 0 320px;
	}
	.contact__form-card {
		flex: 1;
	}
}

.contact__intro,
.contact__intro-fallback {
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-body-text);
	margin: 0 0 28px;
}

.contact__card {
	background: var(--color-surface);
	border: 1px solid var(--color-borders);
	border-radius: var(--radius-card);
	padding: clamp(24px, 3vw, 36px);
}
.contact__card-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-heading);
	margin: 0 0 18px;
}

.contact__detail {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.contact__detail + .contact__detail {
	margin-top: 16px;
}
.contact__detail-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(0, 108, 224, 0.1);
	color: var(--color-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}
.contact__detail-text {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--color-body-text);
	text-decoration: none;
	padding-top: 6px;
}
a.contact__detail-text:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact__form-missing {
	font-size: 14px;
	color: var(--color-muted-text);
	margin: 0;
}

/* ---- Fluent Forms, restyled to match theme tokens ---- */
.contact__form-card .ff-el-group,
.contact__form-card .ff_form_group {
	margin-bottom: 18px;
}
.contact__form-card label,
.contact__form-card .ff-el-input--label label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--color-heading);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}
.contact__form-card .ff_asterik,
.contact__form-card .ff-required {
	color: var(--color-accent);
}
.contact__form-card input[type="text"],
.contact__form-card input[type="email"],
.contact__form-card input[type="tel"],
.contact__form-card input[type="number"],
.contact__form-card input[type="url"],
.contact__form-card textarea,
.contact__form-card select,
.contact__form-card .ff-el-form-control {
	width: 100%;
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--color-body-text);
	background: var(--color-surface);
	border: 1px solid var(--color-borders);
	border-radius: var(--radius-field);
	padding: 11px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact__form-card textarea {
	min-height: 120px;
	resize: vertical;
}
.contact__form-card input:focus,
.contact__form-card textarea:focus,
.contact__form-card select:focus,
.contact__form-card .ff-el-form-control:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 108, 224, 0.12);
}
.contact__form-card .ff-el-is-error .ff-el-form-control,
.contact__form-card .error {
	border-color: #EF4444;
}
.contact__form-card .ff-btn-submit,
.contact__form-card .ff-btn,
.contact__form-card .ff_submit_btn_wrapper button,
.contact__form-card button[type="submit"],
.contact__form-card input[type="submit"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px solid var(--color-primary) !important;
	border-radius: 9999px !important;
	background: var(--color-primary) !important;
	background-color: var(--color-primary) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-weight: 700 !important;
	font-size: 11.5px !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 13px 26px !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.contact__form-card .ff-btn-submit:hover,
.contact__form-card .ff-btn:hover,
.contact__form-card .ff_submit_btn_wrapper button:hover,
.contact__form-card button[type="submit"]:hover,
.contact__form-card input[type="submit"]:hover {
	background: var(--color-primary-hover) !important;
	background-color: var(--color-primary-hover) !important;
	border-color: var(--color-primary-hover) !important;
	color: #fff !important;
}
.contact__form-card .ff-message-success {
	font-size: 14px;
	color: #166534;
	background: var(--color-success-muted);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: 8px;
	padding: 14px 18px;
}

/* ==================== Account page (template-account.php) ==================== */
.account {
	padding: 48px 0 80px;
}
.account__header {
	max-width: 780px;
	margin: 0 auto 32px;
	text-align: center;
}
.account__header .eyebrow {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 10px;
}
.account__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-heading);
	margin: 0;
}
.account__wrap {
	max-width: 440px;
	margin: 0 auto;
}
.account-card {
	background: var(--color-surface);
	border: 1px solid var(--color-borders);
	border-radius: var(--radius-card);
	padding: clamp(28px, 4vw, 40px);
}

/* ---- Tabs (CSS-only: two visually-hidden radios) ---- */
.account-tabs__radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.account-tabs__nav {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--color-borders);
	margin-bottom: 24px;
}
.account-tabs__label {
	flex: 1;
	text-align: center;
	padding: 10px 8px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-muted-text);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.account-tabs__label:hover {
	color: var(--color-heading);
}
.account-tabs__panel {
	display: none;
}
#tab-login:checked ~ .account-tabs__panel--login,
#tab-register:checked ~ .account-tabs__panel--register {
	display: block;
}
#tab-login:checked ~ .account-tabs__nav label[for="tab-login"],
#tab-register:checked ~ .account-tabs__nav label[for="tab-register"] {
	color: var(--color-accent);
	border-color: var(--color-accent);
}
#tab-login:focus-visible ~ .account-tabs__nav,
#tab-register:focus-visible ~ .account-tabs__nav {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- Form fields ---- */
.account-card .form-row {
	margin-bottom: 18px;
}
.account-card label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--color-heading);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}
.account-card input[type="text"],
.account-card input[type="email"],
.account-card input[type="password"] {
	width: 100%;
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--color-body-text);
	background: var(--color-surface);
	border: 1px solid var(--color-borders);
	border-radius: var(--radius-field);
	padding: 11px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.account-card input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 108, 224, 0.12);
}
.account-card .form-row--split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.account-card .form-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--color-body-text);
	cursor: pointer;
	margin: 0;
}
.account-card .form-check input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--color-accent);
}
.account-card .form-check a {
	color: var(--color-accent);
	text-decoration: underline;
}
.account-card .form-forgot {
	font-size: 13px;
	color: var(--color-muted-text);
	text-decoration: none;
}
.account-card .form-forgot:hover {
	color: var(--color-accent);
	text-decoration: underline;
}
.account-card .btn--block {
	width: 100%;
	margin-top: 4px;
}
.account-card .form-switch {
	margin: 18px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--color-muted-text);
}
.account-card .form-switch label {
	display: inline;
	color: var(--color-accent);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin: 0;
}
.account-card .form-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.form-errors {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.5;
}
.form-errors ul {
	margin: 0;
	padding-left: 18px;
}
.form-errors li + li {
	margin-top: 4px;
}

/* ---- Signed-in "My Account" view ---- */
.account-loggedin {
	text-align: center;
}
.account-loggedin__avatar {
	display: block;
	margin: 0 auto 16px;
	border-radius: 999px;
	border: 3px solid var(--color-accent-muted);
}
.account-loggedin__name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--color-heading);
	margin: 0 0 4px;
}
.account-loggedin__email {
	font-size: 13px;
	color: var(--color-muted-text);
	margin: 0 0 24px;
}
.account-loggedin__meta {
	border-top: 1px solid var(--color-borders);
	border-bottom: 1px solid var(--color-borders);
	padding: 16px 0;
	margin-bottom: 24px;
	text-align: left;
}
.account-loggedin__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	padding: 6px 0;
}
.account-loggedin__meta-row span:first-child {
	color: var(--color-muted-text);
}
.account-loggedin__meta-row span:last-child {
	color: var(--color-body-text);
	font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════
   Research Gate — disclaimer, two-column layout, trust blocks,
   styled select, success/pending states, optional-field label
   ══════════════════════════════════════════════════════════════════════════ */

/* ---- Disclaimer banner ---- */
.research-disclaimer {
	background: #FEF9C3;
	border-bottom: 1px solid #EAB308;
	color: #713F12;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 10px 20px;
}

/* ---- Subtitle under the page heading (gate view only) ---- */
.account--gate .account__header p {
	font-size: 15px;
	color: var(--color-muted-text);
	margin-top: 10px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- Two-column gate grid ---- */
.account-gate {
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 48px;
	max-width: 1020px;
	margin: 0 auto;
	align-items: start;
}

@media (max-width: 820px) {
	.account-gate {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.account-gate__trust {
		order: 2;
	}
	.account-gate__form {
		order: 1;
	}
}

/* ---- Trust signals column ---- */
.account-gate__trust {
	padding-top: 6px;
}

.account-gate__trust h2 {
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--color-muted-text);
	margin: 0 0 20px;
}

/* ---- Individual trust block ---- */
.trust-block {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px 0;
	border-top: 1px solid var(--color-borders);
}
.trust-block:last-child {
	border-bottom: 1px solid var(--color-borders);
}

.trust-block__icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--color-borders);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	line-height: 1;
}

.trust-block__body h3 {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-heading);
	margin: 0 0 5px;
	line-height: 1.3;
}

.trust-block__body p {
	font-size: 13px;
	color: var(--color-muted-text);
	line-height: 1.55;
	margin: 0;
}

/* ---- Form column: let it fill its grid cell ---- */
.account-gate__form .account-card {
	max-width: none;
}

/* ---- Styled select to match text inputs ---- */
.account-card select {
	width: 100%;
	font-family: var(--font-sans);
	font-size: 14px;
	padding: 10px 36px 10px 12px;
	border: 1px solid var(--color-borders);
	border-radius: var(--radius-field);
	background-color: #fff;
	color: var(--color-body-text);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6570' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}
.account-card select:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0, 108, 224, 0.12);
}

/* ---- Optional-field label badge ---- */
.field-optional {
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 11px;
	color: var(--color-muted-text);
	margin-left: 5px;
}

/* ---- Registration success notice ---- */
.account-success {
	text-align: center;
	padding: 32px 20px 24px;
}
.account-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #D1FAE5;
	border: 1px solid #34D399;
	color: #065F46;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 16px;
}
.account-success__title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--color-heading);
	margin: 0 0 10px;
}
.account-success__body {
	font-size: 14px;
	color: var(--color-muted-text);
	line-height: 1.65;
	max-width: 340px;
	margin: 0 auto 24px;
}

/* ---- Pending account notice (logged-in but not yet approved) ---- */
.account-pending {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: 10px;
	padding: 28px 24px;
	text-align: center;
}
.account-pending__title {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	color: #78350F;
	margin: 0 0 10px;
}
.account-pending__body {
	font-size: 13px;
	color: #92400E;
	line-height: 1.6;
	margin: 0 0 22px;
}
.account-pending__body strong {
	word-break: break-all;
}

/* ==================== Coherent type overrides ====================
   Page titles use the Bebas Neue display face (like coherentsupply.com
   page headings); small uppercase labels use Albert Sans, not Lora. */
.legal__title,
.contact__title,
.account__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	color: var(--color-ink);
}
.legal__header .eyebrow,
.contact__header .eyebrow,
.account__header .eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-primary);
}
.legal__toc-title,
.contact__card-title,
.account-tabs__label,
.account-gate__trust h2,
.page-content th {
	font-family: var(--font-sans);
}
.legal,
.contact,
.account {
	background-color: var(--color-soft);
	background-image: url('assets/img/section-bg.webp');
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: top center;
}
.account-card .btn,
.contact__card .btn { min-height: 50px; }
.account-card select { border-radius: var(--radius-field); }
.account-card select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 108, 224, 0.12);
}
.trust-block__icon {
	border-radius: 9999px;
	background: var(--color-accent-muted);
	border-color: var(--color-light-blue);
}
.research-disclaimer {
	background: var(--color-ink);
	border-bottom: 0;
	color: #fff;
}
