/**
 * Home — page styles.
 *
 * Shared rules live in assets/css/sensei-design.css. Selectors lead with both
 * wrapper classes (.eti-tpl.eti-tpl--theme-home-php) so they outweigh the shared
 * sheet's two-class rules. Text with no line-height of its own inherits the home
 * page's 1.6 from the wrapper.
 */

/* ---------- hero ---------- */
.eti-tpl.eti-tpl--theme-home-php .ss-hero {
	background: #0D0A1E;
	background-image:
		radial-gradient(900px 600px at 78% 45%, rgba(123, 63, 228, 0.45), transparent 70%),
		repeating-radial-gradient(circle at 78% 45%, rgba(166, 114, 255, 0.08) 0 1px, transparent 1px 72px),
		linear-gradient(rgba(166, 114, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(166, 114, 255, 0.05) 1px, transparent 1px);
	background-size: auto, auto, 64px 64px, 64px 64px;
	border-bottom: 1px solid #241C42;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__inner {
	padding-top: 112px;
	padding-bottom: 112px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__copy {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__title {
	font-weight: 700;
	font-size: 76px;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__lead {
	max-width: 560px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-btn--hero {
	padding: 15px 30px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__art {
	flex: 1 1 460px;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-hero__art svg {
	width: 100%;
	max-width: 520px;
	height: auto;
}

/* ---------- connect to revenue ---------- */
.eti-tpl.eti-tpl--theme-home-php .ss-connect {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__copy {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__kicker,
.eti-tpl.eti-tpl--theme-home-php .ss-connect__title {
	font-size: 96px;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__kicker {
	color: #FFFFFF;
	margin-bottom: -16px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__title {
	color: #A672FF;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__copy p {
	max-width: 600px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-connect__aside {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-formats {
	padding: 32px 28px;
	gap: 24px;
	align-items: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-formats__types {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	justify-content: center;
	align-items: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-formats__type {
	display: flex;
	gap: 12px;
	align-items: center;
}

.eti-tpl.eti-tpl--theme-home-php .ss-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	font-size: 20px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-chips span {
	padding: 6px 14px;
	border-radius: 999px;
	background: #2B1E4A;
}

/* ---------- why sensei ---------- */
.eti-tpl.eti-tpl--theme-home-php .ss-h2 {
	font-weight: 700;
	font-size: 48px;
	letter-spacing: -0.01em;
}

.eti-tpl.eti-tpl--theme-home-php .ss-why {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-why__intro {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 760px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-why__grid {
	--ss-col: 240px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-why__grid h3 {
	line-height: 1.3;
}

/* ---------- contact ---------- */
.eti-tpl.eti-tpl--theme-home-php .ss-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__copy {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form {
	flex: 1 1 460px;
	min-width: 0;
}

/* ---------- contact form (Gravity Forms) ---------- */
/* The comp hand-wrote a static <form>; the real page renders Gravity Forms, whose
   markup nests fields in .gform_fields > .gfield and brings its own theme CSS.
   These rules re-point the comp's styling at GF's structure.

   GF's markup is written for border-box, so the shared content-box assertion is
   undone inside the form. Sizes below are therefore the comp's outer sizes: its
   50px-high inputs plus a 1px border are 52px here. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_wrapper,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_wrapper * {
	box-sizing: border-box;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_wrapper {
	margin: 0;
}

/* GF prints "* indicates required fields" above the form whenever the required
   indicator is an asterisk. The comp has no such line. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_heading {
	display: none;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_fields {
	gap: 16px;
}

/* Comp: label text on a 32px line (20px at 1.6), 6px above its control. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gfield_label {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
	color: #FFFFFF;
	margin: 0 0 6px;
	gap: 4px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gfield_required {
	color: #A672FF;
}

/* An asterisk glyph sits high and small in its em box, so at the label's 20px it
   reads as a speck. Enlarged, with line-height:0 so it cannot grow the label's
   line, and nudged down onto the label's cap height. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gfield_required_asterisk {
	font-size: 28px;
	line-height: 0;
	position: relative;
	top: 8px;
}

/* The Name field is one GF field holding First and Last inputs side by side. Its
   own columns already carry 6px of padding each, so a 4px gap makes the 16px
   gutter that lines its two inputs up with the Email and Inventory type columns
   below. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .ginput_container--name {
	gap: 4px;
}

/* "First" / "Last" under the Name inputs. GF colours these for a light page,
   which leaves them barely legible on this one. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform-field-label--type-sub {
	font-size: 14px;
	line-height: 1.4;
	color: #C9BEEA;
	margin: 6px 0 0;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form input[type="text"],
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form input[type="email"],
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form select,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form textarea {
	width: 100%;
	background: #1A1336;
	border: 1px solid #3A2E63;
	border-radius: 10px;
	box-shadow: none;
	color: #FFFFFF;
	font-size: 20px;
	font-family: inherit;
	padding: 0 14px;

	/* GF's framework sizes every control through these custom properties.
	   Setting them works with its cascade instead of fighting it. The comp's
	   controls use the browser's `normal` line-height, not the page's 1.6. */
	--gf-local-height: 52px;
	--gf-local-min-height: 0;
	--gf-local-line-height: normal;
	line-height: normal;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form input[type="text"]:focus,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form input[type="email"]:focus,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form select:focus,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form textarea:focus {
	border-color: #A672FF;
	box-shadow: none;
}

/* The comp used a native select and let the browser draw the arrow. GF sets
   appearance:none and supplies its own arrow as a background-image, which the
   `background` shorthand above removes — so the native arrow is restored. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form select {
	/* A native select is border-box whatever the page says, so the comp's
	   height:50px is its outer height — 2px shorter than the text inputs. */
	--gf-local-height: 50px;
	padding: 0 12px;
	-webkit-appearance: auto;
	appearance: auto;
	/* GF's reset drops the browser's own centring of the selected option. */
	align-items: center;
}

/* GF zeroes the outline on its controls; the comps' focus ring is restored. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form input:focus-visible,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form select:focus-visible,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form textarea:focus-visible {
	outline: 2px solid #A672FF;
	outline-offset: 3px;
}

/* The comp's textarea is rows="4" at the browser's normal line-height: 122px.
   GF renders rows="10", whose intrinsic height would win over a min-height. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form textarea {
	--gf-local-height: 122px;
	height: 122px;
	min-height: 122px;
	padding: 12px 14px;
	resize: vertical;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_footer {
	margin: 16px 0 0;
	padding: 0;
}

/* GF's theme framework sizes the button with logical properties fed by custom
   properties, and its sheet loads after this file. !important is the pragmatic
   escape hatch — it is scoped to this one button inside this one template. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_button {
	inline-size: auto !important;
	block-size: 54px !important;
	padding: 0 32px !important;
	background: #7B3FE4 !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-weight: 600 !important;
	font-size: 20px !important;
	font-family: inherit !important;
	line-height: normal !important;
	cursor: pointer;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_button:hover {
	filter: brightness(1.1);
}

/* Validation and confirmation — the comp has no states for these, and GF's
   defaults assume a light page. */
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gfield_validation_message,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .validation_message {
	background: none;
	border: 0;
	padding: 0;
	margin-top: 6px;
	font-size: 16px;
	line-height: 1.4;
	color: #FFB4A8;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_validation_errors {
	background: #2B1E4A;
	border: 1px solid #A672FF;
	border-radius: 10px;
	box-shadow: none;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_validation_errors h2,
.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_validation_errors .gform_submission_error {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #FFFFFF;
}

.eti-tpl.eti-tpl--theme-home-php .ss-contact__form .gform_confirmation_message {
	font-size: 20px;
	line-height: 1.6;
	color: #FFFFFF;
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
	.eti-tpl.eti-tpl--theme-home-php .ss-hero__inner {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.eti-tpl.eti-tpl--theme-home-php .ss-hero__title {
		font-size: 46px;
	}

	.eti-tpl.eti-tpl--theme-home-php .ss-connect__kicker,
	.eti-tpl.eti-tpl--theme-home-php .ss-connect__title {
		font-size: 58px;
	}

	.eti-tpl.eti-tpl--theme-home-php .ss-connect__kicker {
		margin-bottom: -12px;
	}

	.eti-tpl.eti-tpl--theme-home-php .ss-h2 {
		font-size: 36px;
		line-height: 1.25;
	}
}
