/* ==========================================================================
   GoalPrevail — shared styles (frontend + block editor canvas)
   Colours come from mode-aware --gp-* tokens (dark default, light switch).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--gp-bg);
	color: var(--gp-text);
	font-family: var(--gp-font-body);
	font-size: var(--wp--preset--font-size--medium, var(--gp-body-size));
	font-weight: var(--gp-body-weight);
	line-height: var(--gp-body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.editor-styles-wrapper { background: var(--gp-bg); color: var(--gp-text); }
:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--gp-font-heading);
	font-weight: var(--gp-heading-weight);
	line-height: var(--gp-heading-lh);
	letter-spacing: var(--gp-heading-tracking);
	text-wrap: balance;
	margin-block: 0 .5em;
}
:where(p, li) { text-wrap: pretty; }
:where(img, video, svg) { max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration-color: var(--gp-line-strong); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
:where(a:hover) { color: var(--gp-accent-text); text-decoration-color: currentColor; }
:where(:focus-visible) { outline: 2px solid var(--gp-brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gp-brand); color: #fff; }
:where(code, kbd, samp) { font-family: var(--gp-font-mono); font-size: .88em; }
:where(:not(pre) > code) { background: var(--gp-surface); border: 1px solid var(--gp-line); padding: .1em .38em; border-radius: 6px; }
:where(hr) { border: 0; border-top: 1px solid var(--gp-line); }
:where(strong, b) { font-weight: 600; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}

/* Softer body copy inside sections */
:where(.wp-block-group, .wp-block-column) > p:not([class*="has-"]):not([class*="is-style-"]) { color: rgb(var(--gp-text-rgb) / .78); }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	border-radius: var(--gp-button-radius);
	font-family: var(--gp-font-body);
	font-weight: var(--gp-button-weight);
	text-transform: var(--gp-button-transform);
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 24px -10px rgb(var(--gp-brand-rgb) / .7);
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .15s;
}
.wp-block-button__link:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 12px 32px -10px rgb(var(--gp-brand-rgb) / .85); }
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--gp-text);
	border: 1px solid var(--gp-line-strong); box-shadow: none;
	padding: calc(var(--gp-button-pad-y) - 1px) calc(var(--gp-button-pad-x) - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgb(var(--gp-text-rgb) / .06); border-color: rgb(var(--gp-text-rgb) / .35); color: var(--gp-text); box-shadow: none; }
.wp-block-button.is-style-gp-arrow > .wp-block-button__link::after,
.wp-block-button.is-style-gp-text > .wp-block-button__link::after {
	content: ""; width: .95em; height: .95em; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.wp-block-button.is-style-gp-arrow > .wp-block-button__link:hover::after,
.wp-block-button.is-style-gp-text > .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.is-style-gp-text > .wp-block-button__link {
	background: transparent; color: var(--gp-text); padding: 2px 0; border-radius: 0; box-shadow: none; font-weight: 500;
}
.wp-block-button.is-style-gp-text > .wp-block-button__link:hover { color: var(--gp-accent-text); background: transparent; box-shadow: none; }
.wp-block-buttons { gap: 12px; }

/* ---------- Labels, leads ---------- */
.is-style-gp-eyebrow {
	display: inline-flex !important; align-items: center; gap: 8px;
	width: fit-content; max-width: 100%;
	padding: 5px 12px 5px 10px !important;
	border: 1px solid var(--gp-line); border-radius: 999px;
	background: rgb(var(--gp-text-rgb) / .03);
	font-size: .82rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
	line-height: 1.4 !important; color: var(--gp-muted) !important;
	margin-block-end: 1.1rem !important;
}
.is-style-gp-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gp-brand); box-shadow: 0 0 10px var(--gp-brand); flex: none; }
.has-text-align-center.is-style-gp-eyebrow { margin-inline: auto !important; }
.is-style-gp-lead { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.5 !important; color: var(--gp-muted) !important; max-width: 48ch; }
.has-text-align-center.is-style-gp-lead { margin-inline: auto; }
.is-style-gp-display { font-size: var(--wp--preset--font-size--huge) !important; line-height: .98 !important; letter-spacing: -.045em !important; }
.gp-accent { color: var(--gp-brand); }
.gp-muted { color: var(--gp-muted); }

/* ---------- Group styles ---------- */
.is-style-gp-surface { background-color: var(--gp-surface); border-block: 1px solid var(--gp-line); }
.wp-block-group.is-style-gp-card, .is-style-gp-card {
	background: var(--gp-raised); border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius); padding: clamp(22px, 3vw, 36px);
}
.is-style-gp-glow { position: relative; isolation: isolate; }
.is-style-gp-glow::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	left: 50%; top: -10%; width: min(1100px, 120%); height: 70%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, var(--gp-glow), transparent);
	filter: blur(30px); opacity: .9;
}

/* ---------- Columns ---------- */
.wp-block-columns { gap: clamp(20px, 3vw, 44px); }
.wp-block-columns.is-style-gp-cards { gap: 16px; }
.wp-block-columns.is-style-gp-cards > .wp-block-column {
	position: relative;
	background: var(--gp-raised);
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	padding: clamp(22px, 2.4vw, 30px);
	transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.wp-block-columns.is-style-gp-cards > .wp-block-column:hover {
	border-color: var(--gp-line-strong); transform: translateY(-3px);
	box-shadow: 0 24px 60px -36px rgb(var(--gp-brand-rgb) / .55);
}
.wp-block-columns.is-style-gp-divided { gap: 0; }
.wp-block-columns.is-style-gp-divided > .wp-block-column { padding: 4px clamp(16px, 2.4vw, 32px); }
@media (min-width: 782px) {
	.wp-block-columns.is-style-gp-divided > .wp-block-column + .wp-block-column { border-left: 1px solid var(--gp-line); }
	.wp-block-columns.is-style-gp-divided > .wp-block-column:first-child { padding-left: 0; }
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-gp-divided > .wp-block-column { padding: 16px 0; border-top: 1px solid var(--gp-line); }
}

/* ---------- Lists ---------- */
.wp-block-list.is-style-gp-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-gp-checks > li { position: relative; padding-left: 1.8em; margin-block: .55em; color: rgb(var(--gp-text-rgb) / .85); }
.wp-block-list.is-style-gp-checks > li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 1.05em; height: 1.05em; border-radius: 50%;
	background: rgb(var(--gp-brand-rgb) / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23e21e26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.wp-block-list.is-style-gp-lines { list-style: none; padding-left: 0; border-top: 1px solid var(--gp-line); }
.wp-block-list.is-style-gp-lines > li { padding: 1em 0; border-bottom: 1px solid var(--gp-line); margin: 0; }

/* ---------- Images & device frames ---------- */
.wp-block-image img { border-radius: inherit; }
.wp-block-image.is-style-gp-soft img { border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); }
.wp-block-image.is-style-gp-browser {
	position: relative; overflow: hidden;
	padding-top: 30px; border-radius: 14px;
	background: var(--gp-raised);
	border: 1px solid var(--gp-line-strong);
	box-shadow: var(--gp-shadow);
}
.wp-block-image.is-style-gp-browser::before {
	content: ""; position: absolute; top: 11px; left: 14px; width: 46px; height: 9px;
	background:
		radial-gradient(circle at 4.5px 4.5px, rgb(var(--gp-text-rgb) / .25) 4px, transparent 4.5px),
		radial-gradient(circle at 22.5px 4.5px, rgb(var(--gp-text-rgb) / .25) 4px, transparent 4.5px),
		radial-gradient(circle at 40.5px 4.5px, rgb(var(--gp-text-rgb) / .25) 4px, transparent 4.5px);
}
.wp-block-image.is-style-gp-browser img { display: block; width: 100%; border-radius: 0; }
.wp-block-image.is-style-gp-browser figcaption { margin: 0; padding: 10px 14px; font-size: .85rem; color: var(--gp-muted); }
.wp-block-image.is-style-gp-phone img {
	border: 6px solid #0b0a0e; border-radius: 30px; background: #0b0a0e;
	box-shadow: 0 0 0 1px var(--gp-line-strong), var(--gp-shadow);
}

/* ---------- Quotes ---------- */
.wp-block-quote.is-style-gp-testimonial { border: 0; padding: 0; margin: 0; }
.wp-block-quote.is-style-gp-testimonial p {
	font-family: var(--gp-font-heading);
	font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem);
	line-height: 1.3; letter-spacing: -.02em; font-weight: 500; color: var(--gp-text);
}
.wp-block-quote.is-style-gp-testimonial p::before { content: "\201C"; color: var(--gp-brand); }
.wp-block-quote.is-style-gp-testimonial p::after { content: "\201D"; color: var(--gp-brand); }
.wp-block-quote.is-style-gp-testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-size: .92rem; color: var(--gp-muted); }
.wp-block-quote.is-style-gp-testimonial cite strong { color: var(--gp-text); }
.wp-block-quote.is-style-gp-testimonial cite a { text-decoration: none; }

/* ---------- Tables, code, details ---------- */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.wp-block-table :where(td, th) { padding: .75em .9em; border: 1px solid var(--gp-line); text-align: left; vertical-align: top; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table thead th { background: var(--gp-surface); color: var(--gp-text); font-weight: 600; }
.wp-block-table.is-style-gp-clean :where(td, th) { border-width: 0 0 1px; }
.wp-block-table.is-style-gp-clean thead th { background: transparent; color: var(--gp-muted); font-size: .85rem; font-weight: 500; border-color: var(--gp-line-strong); }
.wp-block-code { overflow-x: auto; white-space: pre; line-height: 1.55; border: 1px solid var(--gp-line); }
.wp-block-code code { background: none; border: 0; padding: 0; color: inherit; }
.wp-block-details { border: 1px solid var(--gp-line); border-radius: 12px; padding: 0 1.2em; background: var(--gp-raised); }
.wp-block-details summary { cursor: pointer; padding: 1em 0; font-weight: 600; }
.wp-block-separator { border: 0; border-top: 1px solid var(--gp-line); opacity: 1; }
.gp-notice { border-left: 2px solid #e0b100; background: rgb(224 177 0 / .1); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; }

/* ---------- Embeds ---------- */
.wp-block-embed iframe { border-radius: var(--gp-radius); }
.gp-yt {
	position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px;
	border-radius: var(--gp-radius); border: 1px solid var(--gp-line); text-decoration: none; color: var(--gp-text);
	background: radial-gradient(60% 70% at 50% 40%, rgb(var(--gp-brand-rgb) / .25), transparent), var(--gp-surface);
}
.gp-yt__play { width: 72px; height: 72px; border-radius: 50%; background: var(--gp-brand); position: relative; box-shadow: 0 10px 40px -8px rgb(var(--gp-brand-rgb) / .8); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.gp-yt__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.gp-yt:hover .gp-yt__play, .gp-yt:focus-visible .gp-yt__play { transform: scale(1.07); }
.gp-yt__label { font-weight: 500; }
.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper::before { display: none; }
.wp-block-embed.is-provider-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Page composition helpers (Additional CSS classes) ---------- */
.gp-hero { position: relative; isolation: isolate; overflow: clip; }
.gp-hero::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	right: -12%; top: -25%; width: 72%; height: 125%;
	background: radial-gradient(closest-side, var(--gp-glow), transparent 72%);
	filter: blur(40px);
}
.gp-hero-title { font-size: var(--wp--preset--font-size--huge) !important; line-height: .98 !important; letter-spacing: -.05em !important; font-weight: 600 !important; }
:root[data-theme="dark"] .gp-hero-title {
	background: linear-gradient(180deg, var(--gp-text) 45%, rgb(var(--gp-text-rgb) / .6));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.gp-hero-title .gp-accent { -webkit-text-fill-color: var(--gp-brand); color: var(--gp-brand); }
.gp-page-title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; }
.gp-hero-visual { position: relative; padding: 0 0 clamp(36px, 7%, 80px) clamp(36px, 11%, 100px); }
.gp-hero-visual > .wp-block-image { margin: 0; }
.gp-hero-visual .is-style-gp-browser img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }
.gp-hero-visual .gp-hero-phone { position: absolute; left: 0; bottom: 0; width: clamp(104px, 28%, 200px); }
.gp-hero-visual .gp-hero-phone img { aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }
.gp-logos { gap: 12px !important; align-items: center; margin-top: clamp(36px, 5vw, 56px) !important; }
.gp-logos .wp-block-image { margin: 0; }
.gp-logos .wp-block-image a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--gp-line); transition: transform .25s, border-color .2s; }
.gp-logos .wp-block-image a:hover { transform: translateY(-2px); border-color: var(--gp-line-strong); }
.gp-logos img { height: 24px; width: auto; max-width: 150px; object-fit: contain; }
.gp-logos-label { font-size: .85rem !important; color: var(--gp-muted) !important; margin: 0 8px 0 0 !important; }
.gp-section-title { font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -.045em !important; line-height: 1.03 !important; max-width: 20ch; }
.has-text-align-center.gp-section-title { margin-inline: auto; }
.gp-cta-title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; max-width: 16ch; margin: 0; }
.gp-icon-tile img { width: 40px; height: auto; display: block; }
.wp-block-image.gp-icon-tile { margin: 0 0 1.1rem; }
.gp-plugin-tile img { border-radius: 14px; }
.gp-why-list li { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.4; color: var(--gp-text) !important; }
.gp-steps > .wp-block-column { position: relative; padding-top: 22px; border-top: 1px solid var(--gp-line-strong); }
.gp-steps > .wp-block-column::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gp-brand); box-shadow: 0 0 12px var(--gp-brand); }
.gp-steps h3 { font-size: 1.15rem; margin-bottom: .4em; }
.gp-testimonials { gap: clamp(32px, 6vw, 96px) !important; }
.gp-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--gp-radius) + 8px); border: 1px solid var(--gp-line); background: var(--gp-surface); padding: clamp(32px, 6vw, 80px) !important; }
.gp-cta::before { content: ""; position: absolute; z-index: -1; right: -15%; bottom: -70%; width: 75%; height: 150%; background: radial-gradient(closest-side, var(--gp-glow), transparent 70%); filter: blur(30px); }
.gp-align-end { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 781px) { .gp-align-end { align-items: flex-start; } }
.gp-glance { columns: 2; column-gap: 2rem; }
.gp-glance li { break-inside: avoid; }
@media (max-width: 781px) { .gp-glance { columns: 1; } }
.gp-plans { margin-top: .5rem; }
.gp-plan p { margin: 0; }
.gp-price { font-family: var(--gp-font-heading); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: .35em 0 0 !important; white-space: nowrap; color: var(--gp-text) !important; }
.gp-price small { font-size: .5em; font-weight: 400; color: var(--gp-muted); letter-spacing: 0; }
.gp-plan-label { font-size: .82rem !important; color: var(--gp-muted) !important; margin: 0 !important; }
.gp-plan-featured { border-color: rgb(var(--gp-brand-rgb) / .6) !important; box-shadow: 0 0 0 1px rgb(var(--gp-brand-rgb) / .35), 0 20px 50px -30px rgb(var(--gp-brand-rgb) / .8) !important; }
.gp-plan-notes { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; color: var(--gp-muted); }
.gp-compare td:not(:first-child), .gp-compare th:not(:first-child) { text-align: center; }
.gp-link-cards h3 a { text-decoration: none; }
.gp-link-cards h3 a::before { content: ""; position: absolute; inset: 0; }
.gp-link-cards h3 a::after { content: " \2192"; color: var(--gp-brand); }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 .gp-form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .wpcf7 .gp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wpcf7 label { display: block; font-weight: 500; font-size: .9rem; color: var(--gp-text); }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 .gp-req { color: var(--gp-accent-text); }
.wpcf7 .gp-optional { color: var(--gp-muted); font-weight: 400; }
.wpcf7 :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea, select) {
	width: 100%; font: inherit; font-weight: 400; color: var(--gp-text);
	background: var(--gp-bg);
	border: 1px solid var(--gp-line-strong);
	border-radius: 10px; padding: .8rem 1rem; min-height: 48px;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 ::placeholder { color: rgb(var(--gp-text-rgb) / .4); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 :where(input, textarea):focus { outline: none; border-color: var(--gp-brand); box-shadow: 0 0 0 4px rgb(var(--gp-brand-rgb) / .2); }
.wpcf7 .wpcf7-not-valid { border-color: var(--gp-brand) !important; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--gp-accent-text); font-size: .85rem; font-weight: 500; margin-top: .35rem; }
.wpcf7 .wpcf7-submit {
	justify-self: start; font: inherit; font-weight: var(--gp-button-weight);
	color: #fff; background: var(--gp-brand); border: 0; border-radius: var(--gp-button-radius);
	padding: var(--gp-button-pad-y) var(--gp-button-pad-x); min-height: 48px; cursor: pointer;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 24px -10px rgb(var(--gp-brand-rgb) / .7);
	transition: background-color .2s, transform .15s;
}
.wpcf7 .wpcf7-submit:hover { background: var(--gp-brand-hover); }
.wpcf7 .wpcf7-submit:active { transform: translateY(1px); }
.wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: progress; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; border: 1px solid; font-weight: 500; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2f9e62; background: rgb(47 158 98 / .12); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #d39b00; background: rgb(211 155 0 / .12); }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--gp-brand); background: rgb(var(--gp-brand-rgb) / .12); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 .gp-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 .gp-form-note { font-size: .85rem; color: var(--gp-muted); margin: 0; }
.wpcf7 .gp-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.wpcf7 .gp-inline > label { flex: 1 1 220px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Service rows, sub-heads, misc */
.gp-service-row { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--gp-line); margin: 0 !important; }
.gp-service-row:last-child { border-bottom: 1px solid var(--gp-line); }
.gp-service-row__title { margin: 0; font-size: var(--wp--preset--font-size--x-large) !important; letter-spacing: -.035em !important; }
.gp-service-row__title a { text-decoration: none; }
.gp-service-row__title a:hover { color: var(--gp-accent-text); }
.gp-subhead { margin-top: clamp(40px, 5vw, 64px) !important; margin-bottom: 8px !important; font-size: 1.15rem !important; color: var(--gp-muted); font-weight: 500 !important; letter-spacing: -.01em !important; }
.gp-newsletter { margin-top: 2rem !important; }
.gp-newsletter-title, .gp-form-title { font-size: 1.2rem !important; margin: 0 0 .6rem !important; letter-spacing: -.02em !important; }
.gp-hero-text { max-width: 860px; }
.gp-hero-text .gp-hero-title { max-width: 18ch; }
.gp-cta .wp-block-columns { gap: clamp(28px, 5vw, 72px); }
.gp-hero { padding-bottom: clamp(24px, 4vw, 56px) !important; }

/* ==========================================================================
   Full-viewport hero (homepage first section)
   ========================================================================== */
.gp-hero--full {
	position: relative;
	min-height: calc(100vh - var(--gp-header-h, 72px));
	min-height: calc(100svh - var(--gp-header-h, 72px));
	display: flex; flex-direction: column; justify-content: center;
	padding-block: clamp(28px, 6vh, 72px) clamp(56px, 9vh, 96px) !important;
}
.editor-styles-wrapper .gp-hero--full { min-height: 0; }
.gp-hero--full > .alignwide { width: 100%; }
.gp-hero--full::before { right: -20%; top: -30%; width: 85%; height: 150%; }
.gp-hero--full::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	left: -15%; bottom: -40%; width: 55%; height: 80%;
	background: radial-gradient(closest-side, rgb(var(--gp-brand-rgb) / .12), transparent 70%);
	filter: blur(40px);
}
.gp-hero-grid { gap: clamp(32px, 5vw, 80px) !important; }
.gp-hero-copy .gp-hero-title { max-width: 12ch; margin-bottom: .35em !important; }
.gp-hero-copy .is-style-gp-lead { max-width: 40ch; }
.gp-hero-copy .wp-block-buttons { margin-top: 2rem; }

/* Layered screens */
.gp-hero-stack { position: relative; aspect-ratio: 1.12; width: 100%; isolation: isolate; }
.gp-hero-stack > .wp-block-image { position: absolute; margin: 0 !important; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.gp-hero-stack .is-style-gp-browser img { aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top; }
.gp-stack-back { width: 66%; right: -3%; top: 0; z-index: 1; transform: perspective(1800px) rotateY(-14deg) rotateX(5deg) translateZ(-60px); opacity: .55; }
:root[data-theme="light"] .gp-stack-back { opacity: .7; }
.gp-stack-main { width: 84%; left: 0; top: 20%; z-index: 2; transform: perspective(1800px) rotateY(-10deg) rotateX(4deg); box-shadow: 0 60px 120px -40px rgb(0 0 0 / .75), 0 0 0 1px var(--gp-line-strong), 0 30px 90px -40px rgb(var(--gp-brand-rgb) / .55) !important; }
.gp-stack-phone { width: 25%; right: 5%; bottom: 0; z-index: 3; transform: perspective(1800px) rotateY(-10deg) rotateX(4deg); }
.gp-stack-phone img { aspect-ratio: 390 / 800; object-fit: cover; object-position: top; }
.gp-hero-stack:hover .gp-stack-main { transform: perspective(1800px) rotateY(-4deg) rotateX(2deg) translateY(-6px); }
.gp-hero-stack:hover .gp-stack-back { transform: perspective(1800px) rotateY(-8deg) rotateX(3deg) translate(10px, -8px); }
.gp-hero-stack:hover .gp-stack-phone { transform: perspective(1800px) rotateY(-4deg) rotateX(2deg) translateY(-14px); }

/* Scroll cue */
.gp-scroll-cue { position: absolute; left: 50%; bottom: clamp(16px, 3vh, 32px); transform: translateX(-50%); margin: 0 !important; font-size: .82rem; }
.gp-scroll-cue a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gp-muted); text-decoration: none; }
.gp-scroll-cue a::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--gp-muted), transparent); }
.gp-scroll-cue a:hover { color: var(--gp-text); }
@media (max-width: 781px), (max-height: 700px) { .gp-scroll-cue { display: none; } }

@media (max-width: 781px) {
	.gp-hero--full { justify-content: flex-start; padding-top: clamp(24px, 5vh, 48px) !important; padding-bottom: 32px !important; }
	.gp-hero-grid { gap: 28px !important; }
	.gp-hero-copy .wp-block-buttons { margin-top: 1.4rem; }
	.gp-hero-stack { aspect-ratio: 1.5; max-height: 36svh; margin-inline: auto; max-width: 520px; }
	.gp-stack-back { display: none; }
	.gp-stack-main { width: 86%; top: 6%; }
	.gp-stack-phone { width: 24%; right: 2%; }
}

/* Entrance motion: transforms only on the H1 and main screen so the largest paint is not delayed */
@keyframes gp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gp-lift { from { transform: translateY(26px); } to { transform: none; } }
@keyframes gp-lift-main { from { transform: perspective(1800px) rotateY(-16deg) rotateX(8deg) translateY(40px); } to { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg); } }
@keyframes gp-fade { from { opacity: 0; } }
.gp-motion .gp-hero--full .gp-hero-copy > * { animation: gp-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.gp-motion .gp-hero--full .gp-hero-copy > .gp-hero-title { animation-name: gp-lift; animation-delay: .06s; }
.gp-motion .gp-hero--full .gp-hero-copy > :nth-child(3) { animation-delay: .14s; }
.gp-motion .gp-hero--full .gp-hero-copy > :nth-child(4) { animation-delay: .22s; }
.gp-motion .gp-hero--full .gp-stack-main { animation: gp-lift-main 1.1s cubic-bezier(.2,.7,.2,1) both; }
.gp-motion .gp-hero--full .gp-stack-back { animation: gp-fade 1.2s .25s both; }
.gp-motion .gp-hero--full .gp-stack-phone { animation: gp-rise 1s .35s cubic-bezier(.2,.7,.2,1) both; }
.gp-motion .gp-hero--full .gp-scroll-cue { animation: gp-fade 1s .8s both; }
@media (prefers-reduced-motion: reduce) {
	.gp-hero--full *, .gp-hero-stack > .wp-block-image { animation: none !important; }
}
@media (max-width: 781px) and (max-height: 760px) {
	.gp-hero--full { padding-top: 18px !important; padding-bottom: 20px !important; }
	.gp-hero-copy .gp-hero-title { font-size: clamp(2rem, 9.5vw, 2.4rem) !important; }
	.gp-hero-copy .is-style-gp-lead { font-size: 1rem !important; }
	.gp-hero-copy .is-style-gp-eyebrow { margin-block-end: .7rem !important; }
	.gp-hero-copy .wp-block-buttons { margin-top: 1rem; }
	.gp-hero-grid { gap: 18px !important; }
	.gp-hero-stack { max-height: 22svh; }
}
