/* PeritumAI theme styles. Colors and type come from theme.json; this file adds the brand details. */

body {
	background:
		radial-gradient(ellipse 900px 500px at 85% -5%, rgba(139, 92, 246, .16), transparent 70%),
		radial-gradient(ellipse 900px 520px at 10% 8%, rgba(34, 211, 238, .10), transparent 70%),
		linear-gradient(180deg, #030712 0%, #071329 60%, #030712 100%) fixed;
	-webkit-font-smoothing: antialiased;
}

em { font-style: normal; }

/* Header */
.pai-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-top: .9rem;
	padding-bottom: .9rem;
	border-bottom: 1px solid rgba(159, 179, 209, .14);
}
/* The blur sits on a layer behind the header. A filter on the header itself would trap
   the full-screen mobile menu (position: fixed) inside the header bar. */
.pai-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(3, 7, 18, .82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.pai-logo {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: #e6f1ff;
	font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif;
	font-weight: 600;
	font-size: 1.3rem;
	letter-spacing: .3px;
}
.pai-logo:hover { color: #e6f1ff; }
.pai-logo em,
.pai-footer-brand em,
.pai-hero-title em {
	background: linear-gradient(90deg, #22d3ee, #a78bfa);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.pai-header .wp-block-navigation a { color: #c8d6ea; text-decoration: none; }
.pai-header .wp-block-navigation a:hover { color: #22d3ee; }
.pai-header .pai-nav-cta > a {
	color: #22d3ee;
	border: 1px solid rgba(34, 211, 238, .5);
	border-radius: 8px;
	padding: .35rem .8rem;
}
/* Mobile and tablet menu overlay */
.pai-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: #030712;
	color: #e6f1ff;
	padding: 1.25rem 1.5rem 2rem;
}
.pai-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.1rem;
	padding-top: 2.5rem;
}
.pai-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
	color: #e6f1ff;
}
.pai-header .wp-block-navigation__responsive-container.is-menu-open .pai-nav-cta > a { margin-top: .4rem; }
.pai-header .wp-block-navigation__responsive-container-open,
.pai-header .wp-block-navigation__responsive-container-close { color: #e6f1ff; }
/* Use the menu button up to 980px, where the full link row no longer fits on one line. */
@media (min-width: 600px) and (max-width: 980px) {
	.pai-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pai-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* Shared bits */
.pai-kicker {
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .8rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #67e8f9;
	margin-bottom: .25rem;
}
.pai-kicker span { color: #a78bfa; }
.pai-sub { color: #9fb3d1; }
/* Narrow measure without breaking WordPress's centred constrained layout. */
.pai-sub, .pai-lead, .pai-hero-title { box-sizing: border-box; }
.pai-sub, .pai-lead { padding-right: max(0px, min(100% - 62ch, 1180px - 62ch)); }
.pai-status {
	display: inline-block;
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #c4b5fd;
	border: 1px solid rgba(167, 139, 250, .45);
	border-radius: 999px;
	padding: .2rem .7rem;
}
.pai-more { margin-top: auto; font-weight: 600; }
.pai-more a { text-decoration: none; }

.pai-section { padding-top: clamp(3rem, 7vw, 5.5rem); }
.pai-section > h2.wp-block-heading { margin-top: .25rem; }

/* Hero */
.pai-hero {
	position: relative;
	isolation: isolate;
	padding-top: clamp(3.5rem, 10vw, 7.5rem);
	padding-bottom: clamp(1rem, 3vw, 2rem);
}
.pai-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(30, 58, 95, .35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 58, 95, .35) 1px, transparent 1px);
	background-size: 36px 36px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
}
.pai-hero-title { margin-top: .5rem; letter-spacing: -.01em; padding-right: max(0px, min(100% - 15em, 1180px - 15em)); text-wrap: balance; }
.pai-lead { font-size: 1.2rem; color: #c8d6ea; }
.pai-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.pai-chips span {
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .78rem;
	letter-spacing: .05em;
	color: #9fb3d1;
	padding: .3rem .65rem;
	border: 1px solid rgba(159, 179, 209, .28);
	border-radius: 6px;
	background: rgba(3, 7, 18, .5);
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #e6f1ff;
	border: 1px solid rgba(230, 241, 255, .35);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: #22d3ee;
	color: #22d3ee;
	background: transparent;
}

/* Cards */
.pai-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.4rem 1.7rem;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
	border: 1px solid rgba(255, 255, 255, .11);
}
.pai-card > * { margin-block: 0 .7rem; }
.pai-card h3 { margin-top: .35rem; }
.pai-card p:not(.pai-kicker):not(.pai-status):not(.pai-more) { color: #c8d6ea; }
.pai-c1::before,
.pai-c2::before,
.pai-c3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.2rem;
	bottom: 1.2rem;
	width: 3px;
	border-radius: 3px;
}
.pai-c1::before { background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.pai-c2::before { background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
.pai-c3::before { background: linear-gradient(180deg, #22d3ee, #a78bfa); box-shadow: 0 0 12px rgba(139, 92, 246, .7); }
.pai-card .pai-status { align-self: flex-start; }

/* Research band */
.pai-band > .wp-block-columns {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 18px;
	border: 1px solid rgba(167, 139, 250, .25);
	background:
		radial-gradient(ellipse 600px 300px at 90% 10%, rgba(139, 92, 246, .18), transparent 70%),
		#0b1236;
}
.pai-pillars { list-style: none; padding: 0; margin: 0; }
.pai-pillars li {
	padding: .75rem 0;
	border-bottom: 1px solid rgba(159, 179, 209, .16);
	color: #9fb3d1;
}
.pai-pillars li:last-child { border-bottom: 0; }
.pai-pillars strong { display: block; color: #e6f1ff; font-family: Bahnschrift, "Segoe UI", sans-serif; }

/* Principles */
.pai-principles h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pai-principles p { color: #9fb3d1; margin-top: 0; }
.pai-principles .wp-block-column { border-top: 2px solid; border-image: linear-gradient(90deg, #22d3ee, #a78bfa) 1; padding-top: 1rem; }

/* Signup */
.pai-signup { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.pai-signup .pai-sub { padding-right: 0; }
.pai-signup-form { max-width: 520px; margin: 1.5rem auto 0; text-align: center; }
.pai-signup-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.pai-signup-row input {
	flex: 1 1 240px;
	min-width: 0;
	padding: .75rem 1rem;
	font: inherit;
	color: #e6f1ff;
	background: rgba(3, 7, 18, .7);
	border: 1px solid rgba(159, 179, 209, .35);
	border-radius: 8px;
}
.pai-signup-row input::placeholder { color: #6b7a96; }
.pai-signup-row input:focus { outline: 2px solid #22d3ee; outline-offset: 1px; border-color: transparent; }
.pai-signup-row button {
	flex: 0 0 auto;
	padding: .75rem 1.4rem;
	font: inherit;
	font-weight: 600;
	color: #030712;
	background: #22d3ee;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.pai-signup-row button:hover { background: #a78bfa; }
.pai-signup-row button:disabled { opacity: .6; cursor: wait; }
.pai-signup-msg { min-height: 1.5em; margin: .9rem 0 0; color: #67e8f9; font-weight: 600; }
.pai-signup-note { margin: .25rem 0 0; font-size: .85rem; color: #9fb3d1; }
.pai-signup-form.is-done .pai-signup-row { display: none; }
.pai-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Inner pages */
.pai-page { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.pai-page > .wp-block-post-title { margin-bottom: .5rem; }
.pai-page .wp-block-post-content > h2.wp-block-heading { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pai-page .wp-block-post-content p:not(.pai-lead):not(.pai-kicker):not(.pai-fine):not(.pai-todo) { color: #c8d6ea; }
.pai-page .pai-lead { padding-right: 0; }

.pai-steps, .pai-timeline { list-style: none; padding: 0; }
.pai-steps li, .pai-timeline li {
	padding: .9rem 0;
	border-bottom: 1px solid rgba(159, 179, 209, .16);
	color: #c8d6ea;
}
.pai-steps li:last-child, .pai-timeline li:last-child { border-bottom: 0; }
.pai-steps strong { color: #e6f1ff; }
.pai-timeline li { position: relative; padding-left: 1.6rem; }
.pai-timeline li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: linear-gradient(135deg, #22d3ee, #a78bfa);
	box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
.pai-timeline strong {
	display: block;
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .85rem;
	letter-spacing: .05em;
	color: #67e8f9;
}

.pai-service {
	margin-top: 1.25rem;
	padding: 1.5rem 1.6rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, .11);
	background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
}
.pai-service > * { margin-block: 0 .7rem; }
.pai-service h3 { margin-top: 0; }
.pai-service ul { color: #c8d6ea; padding-left: 1.2rem; }
.pai-service li::marker { color: #22d3ee; }

.pai-note {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding: 1.5rem 1.6rem;
	border-radius: 14px;
	border: 1px solid rgba(167, 139, 250, .3);
	background: radial-gradient(ellipse 500px 220px at 90% 0%, rgba(139, 92, 246, .16), transparent 70%), #0b1236;
}
.pai-note > * { margin-block: 0 .6rem; }
.pai-note h3 { margin-top: 0; }
.pai-fine { font-size: .9rem; color: #9fb3d1; }
.pai-todo {
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .85rem;
	color: #fde68a;
	border: 1px dashed rgba(253, 230, 138, .5);
	border-radius: 8px;
	padding: .5rem .8rem;
}

/* Footer */
.pai-footer {
	padding-top: 3rem;
	padding-bottom: 2rem;
	border-top: 1px solid rgba(159, 179, 209, .14);
	background: rgba(3, 7, 18, .6);
}
.pai-footer-brand { font-family: Bahnschrift, "Segoe UI", sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: .3rem; }
.pai-footer-links { list-style: none; padding: 0; margin: 0; }
.pai-footer-links li { margin: .3rem 0; }
.pai-footer-links a { color: #c8d6ea; text-decoration: none; }
.pai-footer-links a:hover { color: #22d3ee; }
.pai-footer-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(159, 179, 209, .1); }

/* Phone width */
@media (max-width: 781px) {
	.pai-header .wp-block-navigation__responsive-container-open { color: #e6f1ff; }
	.pai-hero-title { padding-right: 0; }
	.pai-lead { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
}

/* Articles */
.pai-latest .wp-block-post-template { gap: 1.25rem; }
.pai-post-card { height: 100%; }
.pai-post-card .wp-block-post-title { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.pai-post-card .wp-block-post-title a,
.pai-page .wp-block-post-title a { color: #e6f1ff; text-decoration: none; }
.pai-post-card .wp-block-post-title a:hover,
.pai-page .wp-block-post-title a:hover { color: #22d3ee; }
.pai-post-card .wp-block-post-excerpt__excerpt { color: #9fb3d1; font-size: .95rem; margin: 0; }
.wp-block-post-terms.pai-kicker a { color: #67e8f9; text-decoration: none; }
.single-post .pai-page .wp-block-post-title { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin-top: .3rem; }
.single-post .wp-block-post-content { font-size: 1.075rem; }
.single-post .wp-block-post-content li { color: #c8d6ea; margin: .35rem 0; }
.single-post .wp-block-post-content li::marker { color: #22d3ee; }
.single-post .wp-block-post-content h3 { margin-top: 1.8rem; }
.single-post .wp-block-post-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pai-page .wp-block-query .pai-card { margin-bottom: 1rem; }
.wp-block-query-pagination a { color: #22d3ee; }
.pai-filter a { text-decoration: none; color: #c8d6ea; padding: .35rem .75rem; border: 1px solid rgba(159, 179, 209, .28); border-radius: 6px; font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace; font-size: .8rem; }
.pai-filter a:hover { color: #22d3ee; border-color: #22d3ee; }
.pai-latest .wp-block-post-template.is-layout-grid { margin-top: 1.5rem; }
.wp-block-query-pagination { margin-top: 2rem; }

/* Pricing tiers */
.pai-tiers { margin-top: 1.25rem; }
.pai-tier ul { color: #c8d6ea; padding-left: 1.2rem; margin: 0 0 .9rem; }
.pai-tier li { margin: .3rem 0; }
.pai-tier li::marker { color: #22d3ee; }
.pai-tier .pai-fine { margin-top: auto; }
.pai-price {
	font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	color: #e6f1ff;
}
.pai-price small {
	display: block;
	font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
	font-size: .75rem;
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9fb3d1;
}
.pai-price span { font-size: 1rem; font-weight: 400; color: #9fb3d1; }

/* Download library (Research page): one featured card, then a compact grid. */
.pai-featured {
	position: relative;
	margin-top: 1.5rem;
	padding: 1.6rem 1.8rem;
	border-radius: 16px;
	border: 1px solid rgba(34, 211, 238, .35);
	background: radial-gradient(ellipse 520px 240px at 95% 0%, rgba(139, 92, 246, .18), transparent 70%),
		linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(255, 255, 255, .015));
}
.pai-featured > * { margin-block: 0 .7rem; }
.pai-featured h3 { margin-top: 0; font-size: 1.5rem; }
.pai-featured p:not(.pai-kicker):not(.pai-fine) { color: #c8d6ea; max-width: 68ch; }
.pai-featured .wp-block-buttons { margin-bottom: 0; }

.pai-library {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}
.pai-library > * { margin: 0 !important; max-width: none !important; }
.pai-dl {
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.2rem 1.2rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .11);
	background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
	transition: border-color .15s ease;
}
.pai-dl:hover { border-color: rgba(34, 211, 238, .45); }
.pai-dl > * { margin-block: 0 .55rem; }
.pai-dl .pai-kicker { font-size: .68rem; letter-spacing: .14em; }
.pai-dl h3 { margin-top: 0; font-size: 1.05rem; line-height: 1.3; }
.pai-dl p:not(.pai-kicker):not(.pai-fine) { font-size: .9rem; line-height: 1.5; color: #c8d6ea; }
.pai-dl .pai-fine { font-size: .78rem; margin-top: auto; }
.pai-dl .wp-block-buttons { margin-bottom: 0; }
.pai-dl .wp-block-button__link { font-size: .85rem; padding: .5rem 1rem; }

@media (max-width: 980px) {
	.pai-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pai-library { grid-template-columns: 1fr; }
	.pai-featured { padding: 1.3rem 1.2rem; }
	.pai-featured h3 { font-size: 1.3rem; }
}
/* Pages with a download library use the wide measure, with text kept readable. */
.pai-page:has(.pai-library, .pai-grid4) { --wp--style--global--content-size: var(--wp--style--global--wide-size); }
.pai-page:has(.pai-library, .pai-grid4) .wp-block-post-content > p,
.pai-page:has(.pai-library, .pai-grid4) .wp-block-post-content > ul:not(.pai-row) {
	box-sizing: border-box;
	padding-right: max(0px, calc(100% - 72ch));
}

.pai-dl ul { font-size: .9rem; color: #c8d6ea; padding-left: 1.1rem; margin: 0 0 .6rem; }
.pai-dl li { margin: .2rem 0; }
.pai-dl li::marker { color: #22d3ee; }

/* Four-across package grid (Consulting page). */
.pai-grid4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}
.pai-grid4 > * { margin: 0 !important; max-width: none !important; }
.pai-grid4 .pai-card { padding: 1.2rem 1.15rem 1.1rem 1.4rem; }
.pai-grid4 .pai-card > * { margin-block: 0 .6rem; }
.pai-grid4 .pai-kicker { font-size: .68rem; letter-spacing: .14em; }
.pai-grid4 h3 { margin-top: .2rem; font-size: 1.05rem; line-height: 1.3; }
.pai-grid4 .pai-price { font-size: 1.6rem; }
.pai-grid4 p:not(.pai-kicker):not(.pai-price):not(.pai-fine) { font-size: .9rem; }
.pai-grid4 ul { font-size: .88rem; padding-left: 1.1rem; }
.pai-grid4 .pai-fine { font-size: .78rem; margin-top: auto; margin-bottom: 0; }

/* Steps shown as a row of four. */
.pai-timeline.pai-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}
.pai-timeline.pai-row li {
	padding: 1.4rem 0 0;
	border-bottom: 0;
	border-top: 1px solid rgba(159, 179, 209, .22);
	font-size: .92rem;
}
.pai-timeline.pai-row li::before { top: -5px; }

@media (max-width: 980px) {
	.pai-grid4, .pai-timeline.pai-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.pai-grid4, .pai-timeline.pai-row { grid-template-columns: 1fr; }
}

/* Analytics consent banner (assets/js/consent.js). Accept and Reject get equal weight. */
.pai-consent {
	position: fixed;
	z-index: 100;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	max-width: 44rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1.25rem;
	padding: 1rem 1.25rem;
	background: #0b1236;
	color: #e6f1ff;
	border: 1px solid #1e2a55;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	font-size: .9375rem;
	line-height: 1.5;
}
.pai-consent[hidden] {
	display: none;
}
.pai-consent-text {
	flex: 1 1 20rem;
	margin: 0;
}
.pai-consent-text a {
	color: #22d3ee;
}
.pai-consent-actions {
	display: flex;
	gap: .6rem;
}
.pai-consent .wp-element-button {
	min-width: 6.5rem;
	padding: .6rem 1.1rem;
	cursor: pointer;
	font-size: .9375rem;
}
.pai-consent .pai-consent-reject {
	background: #e6f1ff;
	color: #030712;
}
.pai-consent .pai-consent-reject:hover {
	background: #a78bfa;
}
@media (max-width: 480px) {
	.pai-consent {
		left: .5rem;
		right: .5rem;
		bottom: .5rem;
	}
	.pai-consent-actions {
		width: 100%;
	}
	.pai-consent .wp-element-button {
		flex: 1;
	}
}
