/* Scientis — the Proscience Portal homepage. Scoped to .scih so it never
   fights the active theme. */

.scih {
	--h-ink: #0b1220;
	--h-ink-2: #3d4b5c;
	--h-dim: #475569;
	--h-line: #e6ebf2;
	--h-faint: #5a6b7f;
	--h-brand: #1d4ed8;
	--h-brand-ink: #16308a;
	--h-wash: #eef4ff;
	--h-green: #16a34a;
	--h-wa: #25d366;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--h-ink);
	line-height: 1.55;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	/* Full-bleed even when dropped inside a block theme's constrained content
	   column, which sets `max-width` plus `margin-left/right: auto !important`
	   on its children. */
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	overflow-x: hidden;
}

/* Standalone homepage document. */
.scientis-home-page { margin: 0; background: #fff; }
.scientis-home-page .scih {
	width: auto;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---------------- Site header on the inner public pages ---------------- */

.scih-sitehead {
	border-bottom: 1px solid var(--h-line);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.scih-sitehead-in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 15px; padding-bottom: 15px;
}
.scih-sitehead a { text-decoration: none; }
.scih-sitehead-brand { display: flex; align-items: center; min-width: 0; }
.scih-sitehead-brand img { display: block; height: 30px; width: auto; }
.scih-sitehead-nav { display: flex; gap: 6px; flex: 0 0 auto; }
.scih-sitehead-nav a {
	display: inline-flex; align-items: center;
	padding: 9px 14px; min-height: 40px; border-radius: 9px;
	font-size: 14px; font-weight: 600; color: var(--h-dim);
	white-space: nowrap;
}
.scih-sitehead-nav a:hover { background: var(--h-wash); color: var(--h-brand); }
.scih-sitehead-nav a.is-current { background: var(--h-wash); color: var(--h-brand); }

/* ---------------- Public forms: sign-up and lookup ---------------- */

.scif { font-size: 16px; }

.scif-head {
	padding: 54px 0 34px;
	text-align: center;
	background:
		radial-gradient(680px 280px at 50% -20%, #dbe9ff 0%, rgba(219, 233, 255, 0) 70%),
		linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.scif-title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.scif-lede {
	max-width: 46ch; margin: 14px auto 0;
	font-size: clamp(15.5px, 2vw, 17px); color: var(--h-ink-2);
	text-wrap: balance;
}

.scif-body { padding: 0 0 72px; background: #fff; }
.scif-cols { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }

.scif-card {
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(16, 33, 90, .04), 0 12px 30px -14px rgba(16, 33, 90, .16);
	padding: 26px 22px;
	margin-top: -22px;
}

.scif-group { border: 0; margin: 0 0 22px; padding: 0; }
.scif-group:last-of-type { margin-bottom: 12px; }
.scif-legend {
	padding: 0 0 12px;
	font-size: 12px; font-weight: 700; letter-spacing: .11em;
	text-transform: uppercase; color: var(--h-faint);
}
.scif-legend em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .8; }

.scif-field { margin-bottom: 15px; }
.scif-field:last-child { margin-bottom: 0; }
.scif-row { display: grid; grid-template-columns: 1fr; gap: 15px; }
.scif-label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--h-ink); }
.scif-req { color: #b91c1c; }
.scif-hint { margin-top: 6px; font-size: 12.5px; color: var(--h-faint); }

.scif-input {
	width: 100%;
	padding: 13px 15px; min-height: 50px;
	font: inherit; font-size: 16px;
	color: var(--h-ink); background: #fff;
	border: 1px solid #cfd9e6; border-radius: 11px;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.scif-input::placeholder { color: #9aa8ba; }
.scif-input:hover { border-color: #b6c4d6; }
.scif-input:focus {
	outline: none; border-color: var(--h-brand);
	box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}
/* Only flag a field once the visitor has actually interacted with it —
   :user-invalid, unlike :invalid, stays quiet on an untouched empty field. */
.scif-input:user-invalid { border-color: #e5a3a3; }
.scif-input:user-invalid:focus { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.scif-textarea { min-height: 92px; resize: vertical; line-height: 1.5; }

.scif-phone { position: relative; display: flex; align-items: center; }
.scif-phone-cc {
	position: absolute; left: 13px; display: grid; place-items: center;
	color: var(--h-wa); pointer-events: none;
}
.scif-phone .scif-input { padding-left: 40px; }

.scif-alert {
	display: flex; align-items: flex-start; gap: 9px;
	padding: 12px 14px; margin-bottom: 20px;
	background: #fef2f2; border: 1px solid #fecaca;
	border-radius: 11px; color: #991b1b; font-size: 14px;
}
.scif-alert svg { flex: 0 0 auto; margin-top: 1px; }

.scif-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.scif-submit { width: 100%; margin-top: 6px; }
.scif-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--h-faint); }

/* Aside panels */

.scif-aside { display: grid; gap: 14px; }
.scif-panel {
	padding: 20px 20px;
	background: var(--h-wash);
	border: 1px solid #dbe6fb;
	border-radius: 16px;
}
.scif-panel-quiet { background: #fafbfd; border-color: var(--h-line); }
.scif-panel-title { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.scif-panel-sub { font-size: 14.5px; color: var(--h-ink-2); }
.scif-panel-btn { width: 100%; margin-top: 14px; min-height: 46px; font-size: 15px; }

.scif-mini { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--h-ink-2); }
.scif-mini li { margin-bottom: 7px; }
.scif-mini li:last-child { margin-bottom: 0; }

.scif-already { font-size: 14px; color: var(--h-dim); text-align: center; }
.scif-already a { color: var(--h-brand); font-weight: 600; }
.scif-already a:hover { text-decoration: underline; }

/* Lookup results */

.scif-results { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--h-line); }
.scif-results-head {
	font-size: 12px; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--h-faint); margin-bottom: 10px;
}
.scif-hits { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.scif-hits a {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; min-height: 62px;
	border: 1px solid var(--h-line); border-radius: 12px;
	color: var(--h-ink); background: #fff;
	transition: border-color .15s, background .15s;
}
.scif-hits a:hover { border-color: var(--h-brand); background: var(--h-wash); }
.scif-hit-avatar {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--h-wash); color: var(--h-brand);
	font-weight: 700; font-size: 15px;
}
.scif-hits a:hover .scif-hit-avatar { background: #fff; }
.scif-hit-text { flex: 1 1 auto; min-width: 0; }
.scif-hit-text strong { display: block; font-size: 15px; font-weight: 600; }
.scif-hit-text span { display: block; font-size: 13px; color: var(--h-dim); }
.scif-hit-go { flex: 0 0 auto; color: var(--h-faint); }
.scif-hits a:hover .scif-hit-go { color: var(--h-brand); }

/* Success state */

.scif-done { padding: 64px 0 78px; text-align: center; background: linear-gradient(180deg, #f7fdf9 0%, #ffffff 62%); }
.scif-tick {
	display: inline-grid; place-items: center;
	width: 62px; height: 62px; margin-bottom: 22px;
	border-radius: 50%; background: #dcfce7; color: #15803d;
}
.scif-tick svg { width: 30px; height: 30px; }
.scif-done-title { font-size: clamp(25px, 4.4vw, 34px); font-weight: 800; max-width: 22ch; margin: 0 auto; }
.scif-done-sub { margin-top: 12px; font-size: 16.5px; color: var(--h-ink-2); }

.scif-steps {
	list-style: none; margin: 34px auto 0; padding: 0;
	max-width: 520px; text-align: left; display: grid; gap: 18px;
}
.scif-steps li { display: flex; gap: 14px; align-items: flex-start; }
.scif-step-n {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--h-wash); color: var(--h-brand);
	font-weight: 700; font-size: 14px;
}
.scif-steps strong { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.scif-steps p { font-size: 14.5px; color: var(--h-ink-2); }
.scif-done .scih-cta { margin-top: 34px; }

/* ---------------- Wider screens ---------------- */

@media (min-width: 640px) {
	.scif-row { grid-template-columns: 1fr 1fr; }
	.scif-card { padding: 30px 30px; }
}

@media (min-width: 900px) {
	.scif-cols { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 30px; }
	.scif-cols-narrow { grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); }
	.scif-head { padding: 68px 0 46px; }
}

.scih-sitefoot {
	padding: 26px 0 34px;
	text-align: center;
	font-size: 13.5px;
	color: #5a6b7f;
	background: #f4f7fc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.scih-sitefoot .scih-wrap { max-width: 940px; margin: 0 auto; padding: 0 22px; }
.scih-sitefoot p { margin: 0; }
.scih-sitefoot a { color: #475569; text-decoration: none; }
.scih-sitefoot a:hover { color: #1d4ed8; text-decoration: underline; }

.scih *, .scih *::before, .scih *::after { box-sizing: border-box; }
/* :where() keeps these resets at zero specificity, so the component rules
   below always win rather than silently losing to `.scih p`. */
.scih :where(p) { margin: 0; }
.scih :where(h1, h2, h3) { margin: 0; line-height: 1.18; letter-spacing: -.025em; }
.scih img { max-width: 100%; }
.scih a { text-decoration: none; }

.scih-wrap { max-width: 940px; margin: 0 auto; padding: 0 22px; }

/* ---------------- Hero ---------------- */

.scih-hero {
	position: relative;
	padding: 76px 0 68px;
	text-align: center;
	background:
		radial-gradient(760px 340px at 50% -8%, #dbe9ff 0%, rgba(219, 233, 255, 0) 68%),
		linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
	border-bottom: 1px solid var(--h-line);
}

.scih-logo { display: block; margin: 0 auto 28px; height: 44px; width: auto; }
.scih-logo-text {
	font-size: 30px; font-weight: 800; letter-spacing: -.03em;
	margin-bottom: 26px;
}

.scih-eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--h-brand);
	margin-bottom: 18px;
}

.scih-title {
	font-size: clamp(30px, 6.2vw, 50px);
	font-weight: 800;
	max-width: 20ch;
	margin: 0 auto;
	text-wrap: balance;
}
.scih-title span {
	display: block;
	font-weight: 500;
	color: var(--h-dim);
	letter-spacing: -.02em;
}

.scih-lede {
	max-width: 52ch;
	margin: 22px auto 0;
	font-size: clamp(16px, 2.2vw, 18px);
	color: var(--h-ink-2);
}

.scih-cta {
	display: flex; flex-wrap: wrap; gap: 11px;
	justify-content: center; margin-top: 30px;
}

.scih-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 26px; min-height: 52px;
	font-size: 15.5px; font-weight: 650; line-height: 1;
	border-radius: 12px; border: 1px solid transparent;
	transition: background .16s, border-color .16s, transform .07s, box-shadow .16s;
}
.scih-btn:active { transform: translateY(1px); }
.scih-btn-primary {
	background: var(--h-brand); color: #fff;
	box-shadow: 0 1px 2px rgba(16, 33, 90, .12), 0 8px 20px -6px rgba(29, 78, 216, .38);
}
.scih-btn-primary:hover { background: var(--h-brand-ink); color: #fff; }
.scih-btn-ghost { border-color: #cfd9e6; color: var(--h-ink); background: #fff; }
.scih-btn-ghost:hover { border-color: var(--h-brand); color: var(--h-brand); }
.scih-btn-wa { background: var(--h-wa); color: #04371d; }
.scih-btn-wa:hover { background: #1fbe5b; color: #04371d; }

.scih-proof {
	margin-top: 22px;
	font-size: 13.5px;
	color: var(--h-faint);
}

/* ---------------- Feature sections ---------------- */

.scih-section { padding: 62px 0; }
.scih-section-alt { background: #fafbfd; border-block: 1px solid var(--h-line); }

.scih-kicker {
	font-size: 12px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--h-faint);
	text-align: center; margin-bottom: 40px;
	padding-bottom: 16px; border-bottom: 1px solid var(--h-line);
}

.scih-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 34px 30px;
}

.scih-item { text-align: center; }
.scih-ico {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; margin-bottom: 15px;
	border-radius: 13px;
	background: var(--h-wash); color: var(--h-brand);
}
.scih-ico svg { width: 22px; height: 22px; }
.scih-item h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 7px; }
.scih-item p { font-size: 15px; color: var(--h-ink-2); max-width: 34ch; margin: 0 auto; }

/* ---------------- Close ---------------- */

.scih-close {
	padding: 66px 0 74px;
	text-align: center;
	background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
	border-top: 1px solid var(--h-line);
}
.scih-close-title { font-size: clamp(23px, 4vw, 31px); font-weight: 800; }
.scih-close-sub { margin-top: 10px; font-size: 16px; color: var(--h-ink-2); }
.scih-staff { margin-top: 38px; font-size: 13.5px; }
.scih-staff a { color: var(--h-faint); }
.scih-staff a:hover { color: var(--h-brand); text-decoration: underline; }

/* ---------------- Wider screens ---------------- */

@media (min-width: 720px) {
	.scih-grid { grid-template-columns: repeat(3, 1fr); }
	.scih-item { text-align: left; }
	.scih-item p { margin: 0; }
	.scih-kicker { text-align: left; }
	.scih-hero { padding: 96px 0 84px; }
}

@media (prefers-reduced-motion: reduce) {
	.scih *, .scih *::before, .scih *::after { transition: none !important; }
}
