/* ==========================================================================
   SurePart — scoped styles. Everything lives under body.sp-page / .sp-* so
   nothing collides with the PartsTrader theme.
   ========================================================================== */

/* Eurostile Regular, self-hosted so every visitor sees it (not just people with it
   installed). Headings only use weight 400, so one file covers them. */
@font-face {
	font-family: "Eurostile";
	src: url("../fonts/surepart/eurostile-regular.woff2") format("woff2"),
	     url("../fonts/surepart/eurostile-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.sp-page {
	/* Colours — Figma Style Guide → Variables / Color (the only colours used; tints via rgba). */
	--sp-green: #88db35;
	--sp-blue: #002662;
	--sp-light-blue: #e0e7f2;
	--sp-white: #fff;
	--sp-dark-grey: #212121;
	--sp-black: #000;

	/* Spacing — Figma Style Guide → Variables / Spacing (16px base). */
	--sp-space-0: 0;
	--sp-space-0-25: 2px;
	--sp-space-0-5: 4px;
	--sp-space-1: 8px;
	--sp-space-2: 16px;
	--sp-space-3: 24px;
	--sp-space-4: 32px;
	--sp-space-5: 40px;
	--sp-space-6: 48px;
	--sp-space-7: 56px;
	--sp-space-8: 64px;
	--sp-space-9: 72px;
	--sp-space-10: 80px;

	/* Type */
	--sp-font: "Montserrat", Arial, sans-serif;
	--sp-display: "Eurostile", "Microgramma", Arial, sans-serif;

	/* Layout */
	--sp-gutter: 64px;
	--sp-max: 1440px;

	margin: 0;
	background: var(--sp-black);
	color: var(--sp-black);
	font-family: var(--sp-font);
	font-size: 14px;
	line-height: 1.5; /* Desktop/Body S */
	letter-spacing: -.01em;
	-webkit-font-smoothing: antialiased;
}
/* Resets wrapped in :where() so they carry zero specificity and never beat component rules. */
:where(.sp-page) *, :where(.sp-page) *::before, :where(.sp-page) *::after { box-sizing: border-box; }
:where(.sp-page) :where(img, svg) { display: block; max-width: none; }
:where(.sp-page) a { color: inherit; text-decoration: none; }
:where(.sp-page) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.sp-page) :where(ul, ol) { list-style: none; }

.sp-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.sp-skip {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--sp-green); color: var(--sp-black); padding: 8px 16px; font-weight: 600;
}
.sp-skip:focus { top: 16px; }
.sp-page :focus-visible { outline: 2px solid var(--sp-green); outline-offset: 3px; }

/* ---------- Type ---------- */
.sp-overline {
	font-family: var(--sp-font);
	font-size: 10px; font-weight: 500; line-height: 12px;
	letter-spacing: .07em; text-transform: uppercase;
}
.sp-h2 {
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400;
	font-size: 56px; line-height: .95; text-transform: uppercase;
}
.sp-h3 {
	font-family: var(--sp-display); font-weight: 400;
	font-size: 40px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase;
}
.sp-h4 {
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400;
	font-size: 32px; line-height: 1.05; text-transform: uppercase;
}
.sp-h5 {
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400;
	font-size: 24px; line-height: 1.05; text-transform: uppercase;
}
/* Body — Montserrat 400 / 600 (bold), line-height 150%, letter-spacing -1% */
.sp-body-l { font-size: 18px; line-height: 1.5; letter-spacing: -.01em; }
.sp-body-m { font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }
.sp-body { font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-tri { display: inline-block; width: 9px; height: 8px; vertical-align: top; margin-left: 12px; }
.sp-tri--up { transform: rotate(180deg); margin-top: .1em; }

/* ---------- Buttons ----------
   Figma Style Guide → Buttons. Each variant sets its colours; the hover fill
   wipes in from the right (Style Guide "Animation"), pressed dims the label to 50%.
   Light-background variant: --dark. Dark-background variants: --light, --green, --outline. */
.sp-btn {
	--sp-btn-bg: transparent; --sp-btn-fg: inherit; --sp-btn-border: transparent;
	--sp-btn-hover-bg: transparent; --sp-btn-hover-fg: inherit; --sp-btn-hover-border: transparent;
	--sp-btn-pressed-fg: inherit;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 18px; border: .5px solid var(--sp-btn-border);
	/* One fill layer, anchored right, grows to full width on hover (the wipe). */
	background-color: var(--sp-btn-bg);
	background-image: linear-gradient(var(--sp-btn-hover-bg), var(--sp-btn-hover-bg));
	background-repeat: no-repeat; background-position: right center; background-size: 0% 100%;
	color: var(--sp-btn-fg);
	font-family: var(--sp-font); font-size: 12px; font-weight: 600; line-height: 14px;
	letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
	transition: background-size .35s ease, color .35s ease, border-color .35s ease;
}
.sp-btn:hover, .sp-btn:focus-visible { background-size: 100% 100%; color: var(--sp-btn-hover-fg); border-color: var(--sp-btn-hover-border); }
.sp-btn:active { color: var(--sp-btn-pressed-fg); }
.sp-btn .sp-arrow { background: currentColor; } /* icon follows the label colour */

/* On light backgrounds: black → blue */
.sp-btn--dark {
	--sp-btn-bg: var(--sp-black); --sp-btn-fg: var(--sp-light-blue);
	--sp-btn-hover-bg: var(--sp-blue); --sp-btn-hover-fg: var(--sp-light-blue); --sp-btn-pressed-fg: rgba(224,231,242,.5);
}
/* On dark backgrounds: white → green */
.sp-btn--light {
	--sp-btn-bg: var(--sp-white); --sp-btn-fg: var(--sp-black);
	--sp-btn-hover-bg: var(--sp-green); --sp-btn-hover-fg: var(--sp-black); --sp-btn-pressed-fg: rgba(0,0,0,.5);
}
/* On dark backgrounds: green → light blue */
.sp-btn--green {
	--sp-btn-bg: var(--sp-green); --sp-btn-fg: var(--sp-black);
	--sp-btn-hover-bg: var(--sp-light-blue); --sp-btn-hover-fg: var(--sp-black); --sp-btn-pressed-fg: rgba(0,0,0,.5);
}
/* On dark backgrounds, "is-secondary": white outline → light blue */
.sp-btn--outline {
	--sp-btn-border: var(--sp-white); --sp-btn-fg: var(--sp-white);
	--sp-btn-hover-bg: var(--sp-light-blue); --sp-btn-hover-fg: var(--sp-black); --sp-btn-hover-border: var(--sp-light-blue); --sp-btn-pressed-fg: rgba(0,0,0,.5);
}
/* ---------- Text highlight ----------
   Figma Style Guide → Text highlight: selected text is black on green, on light and dark sections. */
.sp-page ::selection { background: var(--sp-green); color: var(--sp-black); }

.sp-btn-group { display: flex; flex-wrap: wrap; gap: 16px; }

.sp-arrow {
	display: inline-block; width: 8px; height: 9px; flex: none;
	background: var(--sp-green);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sp-arrow--white { background: var(--sp-white); }

/* ---------- Layout ---------- */
.sp-container { width: 100%; max-width: var(--sp-max); margin: 0 auto; padding: 0 var(--sp-gutter); }
.sp-section { position: relative; background: var(--sp-white); overflow: hidden; }

/* ==========================================================================
   Navbar component
   ========================================================================== */
.sp-nav {
	position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
	padding: 0 88px; pointer-events: none;
}
.admin-bar .sp-nav { top: 48px; }
.sp-nav__bar {
	position: relative; max-width: 1264px; height: 56px; margin: 0 auto;
	display: flex; align-items: center; gap: 34px; padding: 0 16px;
	background: var(--sp-light-blue); pointer-events: auto;
}
/* Slanted ends, matching the Figma triangles */
.sp-nav__bar::before, .sp-nav__bar::after {
	content: ""; position: absolute; top: 0; width: 65px; height: 56px; background: var(--sp-light-blue);
}
.sp-nav__bar::before { left: -32.33px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sp-nav__bar::after  { right: -32.33px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sp-nav__bar > * { position: relative; z-index: 1; }
.sp-nav__logo svg { width: 152px; height: 30px; }
.sp-nav__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.sp-nav__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.sp-nav__links a {
	display: block; padding: 4px 0; font-size: 14px; font-weight: 500; line-height: 14px;
	letter-spacing: -.01em; color: var(--sp-black); transition: opacity .2s;
}
.sp-nav__links a:hover, .sp-nav__links .current-menu-item a { opacity: .6; }
.sp-nav__toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.sp-hero {
	position: relative; overflow: hidden; min-height: 900px;
	background: linear-gradient(180deg, #000 0%, var(--sp-dark-grey) 100%);
	color: var(--sp-light-blue);
}
.sp-hero__pattern {
	position: absolute; top: 0; left: 50%; width: 1437px; height: 900px;
	transform: translateX(-50%); pointer-events: none;
}
.sp-hero__inner {
	position: relative; max-width: var(--sp-max); margin: 0 auto;
	padding: 141px 66px 31px 66px;
}

.sp-badge {
	position: relative; display: inline-flex; margin-left: 14px; padding: 8px;
	background: var(--sp-dark-grey); color: rgba(255,255,255,.8);
	font-size: 10px; font-weight: 500; line-height: 12px; letter-spacing: .07em; text-transform: uppercase;
}
.sp-badge::before, .sp-badge::after {
	content: ""; position: absolute; top: 0; width: 32.33px; height: 28px; background: var(--sp-dark-grey);
}
.sp-badge::before { left: -16.17px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sp-badge::after  { right: -16.17px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sp-badge span { position: relative; }

.sp-hero__title {
	display: flex; flex-direction: column; align-items: flex-start; margin-top: 32px;
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400;
	font-size: 96px; line-height: .95; text-transform: uppercase; color: var(--sp-light-blue);
}
.sp-hero__title-accent {
	display: inline-flex; align-items: flex-start;
	background: linear-gradient(180deg, var(--sp-light-blue) 20%, var(--sp-green) 80%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-hero__title-accent .sp-tri { margin: .18em 0 0 .2em; }

.sp-hero__bottom {
	display: grid; grid-template-columns: minmax(0, 853px) minmax(0, 393px);
	justify-content: space-between; gap: 59px; margin-top: 70px; padding-left: 3px;
}
.sp-hero__aside p { font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }
.sp-hero__aside .sp-btn-group { margin-top: 32px; }

/* Claims table (decorative) */

/* ==========================================================================
   Opportunity
   ========================================================================== */
.sp-opp { padding: 141px 0 72px; }
.sp-opp__title { max-width: 560px; margin-top: 24px; }
.sp-split {
	display: grid; grid-template-columns: minmax(0, 395px) minmax(0, 853px);
	justify-content: space-between; gap: 64px; margin-top: 56px;
}
.sp-split__left { position: relative; }
.sp-opp__pattern { width: 688px; height: 54px; margin-top: 56px; }
.sp-compare { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 35px; }
.sp-compare li {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 8px 8px 16px; margin-right: 22px;
	background: var(--sp-black); color: var(--sp-light-blue);
	font-size: 14px; line-height: 1.5; letter-spacing: -.01em; white-space: nowrap;
}
.sp-compare li::after {
	content: ""; position: absolute; top: 0; right: -21.36px; width: 42.72px; height: 100%;
	background: var(--sp-black); clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
}
.sp-compare li > * { position: relative; z-index: 1; }
.sp-compare strong { color: var(--sp-white); font-weight: 600; }
.sp-opp__statement { max-width: 812px; margin-top: 164px; }

/* ==========================================================================
   Platform cards
   ========================================================================== */
.sp-platform { padding: 0 0 84px; }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; }
.sp-card {
	position: relative; display: flex; flex-direction: column; height: 544px; padding: 24px;
	overflow: hidden; color: var(--sp-white);
	background: linear-gradient(180deg, var(--sp-blue) 0%, var(--sp-black) 100%);
	border: 1px solid rgba(255,255,255,.1);
	scroll-margin-top: 100px;
}
.sp-card::after { /* bottom fade */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 147px;
	background: linear-gradient(180deg, rgba(0,0,0,0), #000); pointer-events: none;
}
/* Whole-card link: an invisible layer over the card (the "Explore" label is visual only). */
.sp-card__link { position: absolute; inset: 0; z-index: 2; }
.sp-card__link:focus-visible { outline: 2px solid var(--sp-green); outline-offset: -2px; }
.sp-card--link { cursor: pointer; }
.sp-card__lines { position: absolute; top: 0; right: 0; width: 355px; height: 233px; pointer-events: none; }
.sp-card__head { position: relative; }
.sp-card__num { display: block; font-size: 10px; font-weight: 500; line-height: 12px; letter-spacing: .07em; color: rgba(255,255,255,.5); }
.sp-card__title { margin-top: 40px; max-width: 300px; }
.sp-card__reveal {
	display: grid; grid-template-rows: 0fr; opacity: 0;
	transition: grid-template-rows .35s ease, opacity .35s ease, margin .35s ease;
}
.sp-card__reveal-inner { min-height: 0; overflow: hidden; }
.sp-card__reveal p { max-width: 320px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-card:hover .sp-card__reveal,
.sp-card:focus-within .sp-card__reveal,
.sp-card.is-active .sp-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }
.sp-link { margin-top: 0; }
.sp-link {
	display: inline-flex; align-items: center; gap: 16px; margin-top: 24px;
	font-size: 12px; font-weight: 600; line-height: 14px; letter-spacing: .02em; text-transform: uppercase;
}
/* Fixed card height: the hover reveal pushes the UI down and the card crops it. */
.sp-card__ui { position: relative; flex-shrink: 0; display: flex; justify-content: center; margin-top: 40px; }

/* Card UI mockups */

/* ==========================================================================
   Approach
   ========================================================================== */
.sp-approach { padding: 142px 0 8rem; }
.sp-approach__title { max-width: 688px; margin-top: 24px; }
.sp-approach__intro { max-width: 395px; margin-top: 56px; }
.sp-approach__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 624px)); justify-content: space-between; gap: 64px; margin-top: 64px; }
.sp-approach__visual {
	position: relative; height: 388px; overflow: hidden;
	background: linear-gradient(180deg, var(--sp-dark-grey) 0%, var(--sp-black) 100%);
}

.sp-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-content: start; }
.sp-benefits li:last-child:nth-child(odd) { grid-column: span 2; }
.sp-benefits__rule { display: flex; align-items: center; gap: 16px; margin-bottom: 13px; }
.sp-benefits__rule::before {
	content: ""; width: 9px; height: 8px; flex: none; background: var(--sp-light-blue);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.sp-benefits__rule::after { content: ""; flex: 1; height: .5px; background: var(--sp-light-blue); }
.sp-benefits h3, .sp-benefits p { padding-left: 24px; }
.sp-benefits h3 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-benefits p { margin-top: 8px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.sp-cta {
	position: relative; overflow: hidden; min-height: 625px;
	background: linear-gradient(180deg, var(--sp-blue) 20%, var(--sp-black) 100%);
	color: var(--sp-light-blue); text-align: center;
}
.sp-cta__lines { position: absolute; left: 50%; top: 189px; width: 1196px; height: 438px; transform: translateX(calc(-50% + 3px)); pointer-events: none; }
.sp-cta__lines--mobile { display: none; }
.sp-cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 144px var(--sp-gutter) 144px; }
.sp-cta__mark { width: 35px; height: 20px; }
.sp-cta__title { display: flex; flex-direction: column; align-items: center; }
.sp-cta__title span:nth-child(2) { opacity: .8; }
.sp-cta__title span:nth-child(3) { opacity: .6; }
.sp-cta__sub { font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }

/* ==========================================================================
   Footer component
   ========================================================================== */
.sp-footer { background: var(--sp-black); color: var(--sp-white); padding-top: 1px; }
.sp-footer__inner {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px 48px;
	/* Same width and gutter as .sp-container, so the footer lines up with the sections above. */
	max-width: var(--sp-max); margin: 0 auto; padding: 80px var(--sp-gutter) 120px;
}
.sp-footer__brand { display: flex; flex-direction: column; gap: 24px; }
.sp-footer__logo { width: 164px; height: 32px; }
.sp-footer__brand p { max-width: 258px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sp-footer__links { display: flex; flex-direction: column; gap: 8px; }
.sp-footer__links a { font-size: 14px; line-height: 1.5; letter-spacing: -.01em; transition: opacity .2s; }
.sp-footer__links a:hover { opacity: .6; }
.sp-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.sp-footer__bottom p { max-width: var(--sp-max); margin: 0 auto; padding: 20px var(--sp-gutter); font-size: 12px; line-height: 1.6; letter-spacing: .02em; }

/* ==========================================================================
   Child pages — shared pieces
   ========================================================================== */
.sp-btn--wide { padding-left: 24px; padding-right: 24px; }
.sp-btn--arrow { gap: 16px; }
.sp-h1 {
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400;
	font-size: 80px; line-height: .95; text-transform: uppercase;
}

/* Light badge: white box, #e0e7f2 hairline, slanted ends */
.sp-badge--light {
	margin-left: 16px; padding: 7px 8px;
	background: var(--sp-white); color: var(--sp-black);
	border-top: 1px solid var(--sp-light-blue); border-bottom: 1px solid var(--sp-light-blue);
}
.sp-badge--light::before, .sp-badge--light::after {
	top: -1px; width: 16.17px; height: 28px; clip-path: none; background: no-repeat center / 100% 100%;
}
.sp-badge--light::before {
	left: -16.17px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16.17 28'%3E%3Cpath d='M16.17 .5H.87L16.17 27' fill='%23fff' stroke='%23E0E7F2'/%3E%3C/svg%3E");
}
.sp-badge--light::after {
	right: -16.17px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16.17 28'%3E%3Cpath d='M0 1L15.3 27.5H0' fill='%23fff' stroke='%23E0E7F2'/%3E%3C/svg%3E");
}

/* Closing band (child pages) */
.sp-band {
	padding: 96px var(--sp-gutter);
	background: linear-gradient(180deg, var(--sp-blue) 20%, var(--sp-black) 100%);
	color: var(--sp-light-blue);
}
.sp-band__inner { display: flex; align-items: flex-end; gap: 32px; max-width: 1312px; margin: 0 auto; }
.sp-band__copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; }
.sp-band__mark { width: 35px; height: 20px; }
/* Max width comes from ACF ("Heading max width") and sets where the heading wraps. */
.sp-band__title { max-width: min(var(--sp-band-title-max, 100%), 100%); }
@media (min-width: 1101px) {
	/* Desktop: the heading keeps its set width; the rule absorbs any extra width. */
	.sp-band__title { width: var(--sp-band-title-max, auto); }
	.sp-band__copy { flex: 1 0 auto; }
	.sp-band:not(.sp-band--stacked) .sp-band__actions { flex: 0 1 579px; min-width: 260px; }
	/* Contact: reach cards sit flush with the bottom of the form. */
	.sp-chero__copy { display: flex; flex-direction: column; align-self: stretch; }
	.sp-chero__copy .sp-steps { margin-bottom: 80px; }
	.sp-chero__copy .sp-reach { margin-top: auto; }
}
.sp-band__text { max-width: 599px; color: var(--sp-white); font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-band__actions { display: flex; align-items: center; gap: 16px; width: 579px; flex: none; }
.sp-band__rule { flex: 1; height: 1px; background: var(--sp-blue); }
.sp-band--stacked .sp-band__inner { flex-direction: column; align-items: flex-start; }
.sp-band--stacked .sp-band__actions { width: 828px; max-width: 100%; }

/* ==========================================================================
   Platform pages (Price Confidence / Estimate Accuracy / Operational Intelligence)
   ========================================================================== */
.sp-phero { position: relative; overflow: hidden; min-height: 728px; background: var(--sp-white); }
.sp-pf--ops .sp-phero { min-height: 697px; }
.sp-phero__grid { position: absolute; top: -328px; left: calc(50% + 27.5px); width: 1041px; height: 1002px; pointer-events: none; }
.sp-phero__inner {
	position: relative; display: grid; grid-template-columns: minmax(0, 688px) 622px;
	justify-content: space-between; padding-top: 141px; padding-bottom: 64px;
}
.sp-phero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.sp-phero__title {
	max-width: 690px; margin: 32px 0 0;
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400; font-size: 80px; line-height: .95; text-transform: uppercase;
}
.sp-phero__intro { max-width: 393px; margin-top: 40px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-pf--ops .sp-phero__intro { margin-top: 24px; }
/* Estimate Accuracy: break "Build better / estimates / from the start" as in Figma (2418:4385);
   the triangle hangs past the box so it can't drop to its own line. */
.sp-pf--estimate .sp-phero__title { max-width: 610px; }
.sp-pf--estimate .sp-phero__title .sp-tri { margin-right: -21px; }
.sp-phero__copy .sp-btn { margin-top: 32px; }
.sp-phero__visual { position: relative; }

/* Hero visuals — decorative product UI, 622×484 */

/* Section heading + feature cards */
.sp-pfs { padding: 95px 0 86px; }
.sp-pfs--compare { padding: 75px 0 69px; }
/* Price Confidence: triangle grid behind the comparison panels, faded by a soft round
   spotlight (Figma "Frame 187": Blue hairline grid at 20%, masked by a blurred circle). */
.sp-pfs--compare .sp-container { position: relative; z-index: 0; }
.sp-pfs--compare .sp-container::before {
	content: ""; position: absolute; z-index: -1; left: 332px; top: -225px; width: 1440px; height: 900px;
	opacity: .2; pointer-events: none;
	background: url("../images/surepart/pc-triangle-grid.svg") 0 150.147px / 260.466px 451.14px repeat;
	-webkit-mask-image: radial-gradient(circle at 591.14px 523.38px, rgba(0,0,0,0.751) 0px, rgba(0,0,0,0.699) 100px, rgba(0,0,0,0.561) 200px, rgba(0,0,0,0.379) 300px, rgba(0,0,0,0.210) 400px, rgba(0,0,0,0.094) 500px, rgba(0,0,0,0.033) 600px, rgba(0,0,0,0.009) 700px, rgba(0,0,0,0.002) 800px);
	mask-image: radial-gradient(circle at 591.14px 523.38px, rgba(0,0,0,0.751) 0px, rgba(0,0,0,0.699) 100px, rgba(0,0,0,0.561) 200px, rgba(0,0,0,0.379) 300px, rgba(0,0,0,0.210) 400px, rgba(0,0,0,0.094) 500px, rgba(0,0,0,0.033) 600px, rgba(0,0,0,0.009) 700px, rgba(0,0,0,0.002) 800px);
}
.sp-pfs--side { padding: 109px 0 87px; }
.sp-pfs__title { max-width: 624px; }
.sp-pfs__body { max-width: 395px; margin-top: 40px; }
.sp-pfs--side .sp-pfs__head { display: grid; grid-template-columns: minmax(0, 624px) minmax(0, 624px); justify-content: space-between; gap: 64px; align-items: end; }
.sp-pfs--side .sp-pfs__title { max-width: 606px; }
.sp-pfs--side .sp-pfs__body { margin: 0 0 4px; }

.sp-versus { position: relative; height: 404px; }
.sp-versus__item { position: absolute; width: 652px; height: 226px; background: no-repeat center / 100% 100%; }
.sp-versus__item--assumption { left: 269px; top: 0; padding: 24px 0 0 64px; background-image: url("../images/surepart/compare-assumption.svg"); }
.sp-versus__item--reality { left: 659px; top: 226px; padding: 25px 0 0 64px; background-image: url("../images/surepart/compare-reality.svg"); color: var(--sp-light-blue); }
.sp-versus .sp-overline { display: flex; align-items: center; gap: 8px; }
.sp-versus__tri { width: 9px; height: 7.8px; background: var(--sp-black); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sp-versus__item--reality .sp-versus__tri { background: var(--sp-green); }
.sp-versus__text { width: 360px; margin: 59px 0 0 109px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-versus__item--reality .sp-versus__text { margin: 59px 0 0 88px; }

.sp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 133px; }
.sp-pfs--side .sp-features { margin-top: 64px; }
.sp-pfs--plain .sp-features { margin-top: 68px; }
.sp-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-feature {
	padding: 40px 40px 48px; color: var(--sp-white);
	background: linear-gradient(180deg, var(--sp-black) 0%, var(--sp-blue) 100%);
	border: 1px solid rgba(255,255,255,.1);
}
.sp-feature__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--sp-blue); }
.sp-feature__icon svg { flex: none; } /* each SVG is its 18×18 Figma frame */
.sp-feature__title { margin-top: 32px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-feature__text { margin-top: 32px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }

/* The result — stepped rows */
.sp-results { padding: 93px 0 130px; }
.sp-results__inner { display: grid; grid-template-columns: 229.5px minmax(0, 1fr); }
.sp-results__label { padding-top: 0; }
.sp-results__list { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
.sp-results__row {
	position: relative; display: flex; align-items: center; gap: 24px;
	width: calc(394px + var(--sp-step) * 229.5px); min-width: max-content; max-width: calc(100% - 50px);
	padding: 16.5px 40px 16.5px 32px; background: var(--sp-light-blue);
}
.sp-results__row::after {
	content: ""; position: absolute; top: 0; right: -49.5px; width: 99px; height: 100%;
	background: var(--sp-light-blue); clip-path: polygon(0 0, 50% 0, 100% 100%, 0 100%);
}
.sp-results__num { width: 14px; font-size: 10px; font-weight: 500; line-height: 12px; letter-spacing: .07em; }
.sp-results__text { position: relative; z-index: 1; font-size: 16px; font-weight: 600; line-height: 52.8px; white-space: nowrap; }

/* Operational Intelligence split + quote comparison card */
.sp-pfsplit { padding: 64px 0 120px; }
.sp-pfsplit__inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.sp-pfsplit__visual { width: 624px; flex: none; }
.sp-pfsplit__copy { width: 624px; }
.sp-pfsplit__copy .sp-body { max-width: 428px; margin-top: 32px; }

/* ==========================================================================
   About
   ========================================================================== */
.sp-ahero {
	position: relative; overflow: hidden; padding: 158px 0 81px;
	background: linear-gradient(180deg, #000 0%, var(--sp-dark-grey) 100%); color: var(--sp-light-blue);
}
.sp-ahero__pattern { position: absolute; left: -514px; top: 343px; width: 1614px; height: 1110px; pointer-events: none; }
.sp-ahero__inner { position: relative; }
.sp-ahero__mark { width: 35px; height: 20px; }
.sp-ahero__title {
	max-width: 805px; margin-top: 28px;
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400; font-size: 80px; line-height: .95; text-transform: uppercase;
	background: linear-gradient(180deg, var(--sp-light-blue) 70.9%, var(--sp-green) 93.7%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-ahero__bottom { display: grid; grid-template-columns: minmax(0, 393px) minmax(0, 854px); justify-content: space-between; gap: 64px; margin-top: 54px; }
.sp-ahero__copy p { color: var(--sp-white); font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-ahero__copy .sp-btn { margin-top: 32px; }

.sp-video { position: relative; aspect-ratio: 854 / 480; overflow: hidden; background: linear-gradient(180deg, var(--sp-dark-grey) 0%, var(--sp-black) 100%); }
.sp-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-video__play {
	/* The whole poster is the play button; the icon sits in the centre. */
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
}
button.sp-video__play:focus-visible { outline: 2px solid var(--sp-green); outline-offset: -2px; }
.sp-video__icon {
	display: flex; align-items: center; justify-content: center;
	width: 89px; height: 89px; transform: rotate(90deg); transition: transform .2s;
}
.sp-video__icon img { width: 77px; height: 67px; margin-top: -22px; }
button.sp-video__play:hover .sp-video__icon, button.sp-video__play:focus-visible .sp-video__icon { transform: rotate(90deg) scale(1.08); }
.sp-video.is-playing .sp-video__poster, .sp-video.is-playing .sp-video__play { display: none; }
.sp-video iframe, .sp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }

.sp-aintro { padding: 116px 0 72px; }
.sp-aintro__pattern { position: absolute; top: -109px; left: calc(50% - 720px); width: 1436px; height: 1078px; pointer-events: none; }
.sp-aintro .sp-container { position: relative; }
.sp-aintro__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; }
.sp-aintro__title { max-width: 780px; }
.sp-aintro__body { max-width: 428px; margin-top: 30px; }

.sp-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 166px; }
.sp-pillar {
	position: relative; overflow: hidden; min-height: 357px; padding: 24px; color: var(--sp-white);
	background: linear-gradient(180deg, var(--sp-blue) 0%, var(--sp-black) 100%);
	border: 1px solid rgba(255,255,255,.1);
}
.sp-pillar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 147px; background: linear-gradient(180deg, rgba(0,0,0,0), #000); pointer-events: none; }
.sp-pillar__lines { position: absolute; width: 1041px; height: 1002px; pointer-events: none; }
.sp-pillar__lines--1 { left: 82px; top: calc(50% - 539.7px); transform: translateY(-50%); }
.sp-pillar__lines--2 { left: -130.7px; top: calc(50% - 571.5px); transform: translateY(-50%) scaleX(-1); }
.sp-pillar > :not(.sp-pillar__lines) { position: relative; z-index: 1; }
.sp-pillar__label { color: rgba(255,255,255,.5); }
.sp-pillar__title { margin-top: 40px; } /* full card width, as in Figma (node 2418:5382) */
.sp-pillar__text { max-width: 465px; margin-top: 24px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }
.sp-pillar + .sp-pillar .sp-pillar__text { max-width: 421px; }

.sp-team { padding: 109px 0 0; }
.sp-team__body { max-width: 428px; margin-top: 30px; }
.sp-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 128px; }
.sp-member { background: var(--sp-light-blue); border: 1px solid rgba(255,255,255,.1); }
.sp-member__photo { height: 301px; overflow: hidden; }
.sp-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.sp-member__body { padding: 24px 40px 40px; }
.sp-member__name { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-member__role { color: var(--sp-dark-grey); }
.sp-member__bio { margin-top: 32px; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; }

.sp-backers { padding: 8rem 0; }
.sp-backers__inner { display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.sp-backers__copy { max-width: 601px; }
.sp-backers__copy .sp-body { max-width: 428px; margin-top: 39px; }
.sp-leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 623px; flex: none; }
.sp-leader { padding: 16px; border: 1px solid rgba(0,0,0,.07); margin: 0 -1px -1px 0; }
.sp-leader img { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 16px; object-fit: cover; background: var(--sp-light-blue); }
.sp-leader__name { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-leader__role { padding-top: 5px; color: rgba(0,0,0,.5); }

/* ==========================================================================
   Contact
   ========================================================================== */
.sp-chero { padding: 200px 0 141px; }
.sp-chero__pattern { position: absolute; top: -401.5px; left: calc(50% - 720px); width: 1436px; height: 1078px; pointer-events: none; }
.sp-chero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 624px) minmax(0, 624px); justify-content: space-between; gap: 64px; align-items: start; }
.sp-chero__copy { padding-left: 2px; }
.sp-chero__title {
	max-width: 622px;
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400; font-size: 80px; line-height: .95; text-transform: uppercase;
}
.sp-chero__intro { max-width: 393px; margin-top: 22px; }

.sp-steps { display: flex; flex-direction: column; gap: 2px; margin: 35px 0 0; }
.sp-steps li { display: flex; align-items: flex-start; gap: 24px; padding: 16.5px 40px 16.5px 8px; }
.sp-steps__num { display: flex; align-items: center; justify-content: space-between; width: 45px; height: 26px; flex: none; font-size: 10px; font-weight: 500; letter-spacing: .07em; }
.sp-steps li > span:last-child { display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }
.sp-steps strong { font-weight: 600; }

.sp-reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 622px; margin-top: 80px; }
.sp-reach li { padding: 48px 40px; background: var(--sp-light-blue); }
.sp-reach .sp-overline { color: var(--sp-dark-grey); }
.sp-reach__lines { display: flex; flex-direction: column; margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.sp-reach__lines a:hover { text-decoration: underline; }

.sp-form {
	display: flex; flex-direction: column; gap: 32px; min-height: 861px; padding: 40px;
	background: linear-gradient(180deg, var(--sp-blue) 0%, var(--sp-black) 100%);
	border: 1px solid rgba(255,255,255,.1); color: var(--sp-light-blue);
	scroll-margin-top: 100px;
}
.sp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-form input, .sp-form textarea, .sp-form button { font-family: var(--sp-font); }
.sp-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form__note { padding: 12px 16px; border: 1px solid red; background: rgba(255,0,0,.12); color: var(--sp-white); font-size: 13px; line-height: 1.5; }
.sp-form__audience { margin: 0 0 -16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--sp-light-blue); font-size: 13px; line-height: 1.5; }
.sp-form__audience a { color: var(--sp-white); text-decoration: underline; text-underline-offset: 2px; }

.sp-form .sp-form__tabs { display: flex; gap: 1px; padding: 1px; border: 1px solid rgba(255,255,255,.07); } /* .sp-form prefix beats the fieldset reset above */
.sp-form__tabs label { flex: 1; cursor: pointer; }
.sp-form__tabs input, .sp-form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.sp-form__tabs span {
	display: block; padding: 8px; text-align: center; font-size: 13px; line-height: 17px;
	color: var(--sp-white); border: 1px solid rgba(255,255,255,.07); transition: background-color .2s, color .2s;
}
.sp-form__tabs input:checked + span { background: var(--sp-light-blue); color: var(--sp-black); border-color: transparent; }
.sp-form__tabs input:focus-visible + span, .sp-form__chips input:focus-visible + span, .sp-form__check input:focus-visible { outline: 2px solid var(--sp-green); outline-offset: 2px; }

.sp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; } /* inputs stay level if a label + error wraps */
.sp-field { display: flex; flex-direction: column; gap: 8px; }
.sp-field > span, .sp-form__chips legend { color: var(--sp-light-blue); font-size: 12px; line-height: normal; }
/* Label + inline error, as in the Figma "Error messages" state */
.sp-field__label { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.sp-field__error { color: red; font-style: normal; }
.sp-field__error:empty { display: none; }
.sp-field input, .sp-field textarea {
	width: 100%; height: 44px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 0;
	background: transparent; color: var(--sp-white); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; outline: none; transition: border-color .2s;
}
.sp-field input::placeholder, .sp-field textarea::placeholder { color: rgba(242,244,243,.5); }
.sp-field input:focus, .sp-field textarea:focus { border-color: rgba(255,255,255,.4); }
.sp-field--area { flex: 1; }
.sp-field--area textarea { flex: 1; min-height: 187px; height: auto; padding: 16px; resize: vertical; }

.sp-form__chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sp-form__chips legend { float: left; width: 100%; margin-bottom: 0; padding: 0; }
.sp-form__chips label { cursor: pointer; }
.sp-form__chips span {
	display: inline-flex; align-items: center; height: 33px; padding: 0 16px;
	border: 1px solid rgba(255,255,255,.3); color: var(--sp-white); font-size: 13px; line-height: 1.5; letter-spacing: -.01em;
	transition: background-color .2s, color .2s;
}
.sp-form__chips input:checked + span { background: var(--sp-light-blue); color: var(--sp-black); border-color: rgba(255,255,255,.07); }
/* Radio hover (tabs + Lead Source): the selected look at 50% opacity */
.sp-form__tabs label:hover input:not(:checked) + span,
.sp-form__chips label:hover input:not(:checked) + span { background: rgba(224,231,242,.5); color: var(--sp-white); }

.sp-form__check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; }
.sp-form__check input {
	appearance: none; -webkit-appearance: none; width: 14px; height: 14px; flex: none; margin: 0;
	border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer;
}
.sp-form__check input:checked { background: var(--sp-green); border-color: var(--sp-green); }
.sp-form__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sp-form__foot p { max-width: 291px; font-size: 12px; line-height: normal; opacity: .5; }
.sp-form__foot a { text-decoration: underline; }
.sp-form__foot .sp-btn { border: 0; cursor: pointer; }
.sp-form__alt { margin: 0; font-size: 12px; line-height: 1.5; }
.sp-form__alt a { text-decoration: underline; }

/* Success state — Figma "form-success" */
.sp-form--success { align-items: center; justify-content: center; text-align: center; }
.sp-form__success-mark { width: 35px; height: 20px; }
.sp-form__success-mark path { fill: var(--sp-green); }
.sp-form__success-title {
	max-width: 512px; margin: 0; color: var(--sp-light-blue);
	font-family: var(--sp-display); letter-spacing: 0; font-weight: 400; font-size: 56px; line-height: .95; text-transform: uppercase;
}
.sp-form--success p { margin-top: -16px; color: var(--sp-light-blue); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }

/* ==========================================================================
   Responsive (≤640px follows the Figma mobile frame; tablet sizes are
   sensible defaults, to confirm with design)
   ========================================================================== */
@media (max-width: 1280px) {
	.sp-page { --sp-gutter: 40px; }
	.sp-nav { padding: 0 56px; }
	.sp-hero__inner { padding-left: 40px; padding-right: 40px; }
	.sp-hero__title { font-size: 80px; }
	.sp-hero__bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; }

	.sp-split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; }
	.sp-approach__grid { gap: 40px; }

}

@media (max-width: 1100px) {
	.sp-pfs--compare .sp-container::before { display: none; }
	.sp-nav__toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 40px; height: 40px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer;
	}
	.sp-nav__toggle-bars, .sp-nav__toggle-bars::before, .sp-nav__toggle-bars::after {
		display: block; width: 20px; height: 2px; background: var(--sp-black); transition: transform .2s, opacity .2s;
	}
	.sp-nav__toggle-bars { position: relative; }
	.sp-nav__toggle-bars::before, .sp-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
	.sp-nav__toggle-bars::before { top: -6px; }
	.sp-nav__toggle-bars::after { top: 6px; }
	.sp-nav.is-open .sp-nav__toggle-bars { background: transparent; }
	.sp-nav.is-open .sp-nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.sp-nav.is-open .sp-nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	/* Open menu — full-screen panel, Figma "Navbar - opened" (node 2446:12220).
	   The bar's logo and toggle (z-index 1) stay on top of the panel (z-index 0). */
	.sp-nav__menu {
		position: fixed; inset: 0; z-index: 0;
		flex-direction: column; align-items: center; justify-content: flex-start; gap: 66px;
		padding: 139px 24px 48px; overflow-y: auto;
		background: var(--sp-light-blue) url("../images/surepart/nav-pattern.svg") no-repeat left -246px top 484px / 1041px 1002px;
		display: none;
	}
	.sp-nav.is-open .sp-nav__menu { display: flex; }
	.sp-nav__links { flex-direction: column; align-items: center; gap: 37px; flex-wrap: nowrap; }
	.sp-nav__links a {
		padding: 4px 0; text-align: center;
		font-family: var(--sp-display); font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: 0; text-transform: uppercase;
	}
	.sp-nav__links a:hover, .sp-nav__links .current-menu-item a { opacity: .6; }
	.sp-nav__cta { align-self: center; }
	html.sp-nav-open { overflow: hidden; } /* no page scroll behind the open menu */
	.sp-nav__toggle:focus:not(:focus-visible) { outline: none; } /* focus ring for keyboard users only */

	.sp-hero__bottom, .sp-split, .sp-approach__grid { grid-template-columns: minmax(0, 1fr); }
	.sp-hero__bottom { margin-top: 56px; }
	.sp-hero__aside { order: -1; max-width: 480px; }
	.sp-opp__pattern { display: none; }
	.sp-compare { margin-top: 0; }
	.sp-opp__statement { margin-top: 72px; }
	.sp-platform { padding-top: 120px; }
	.sp-cards { grid-template-columns: minmax(0, 1fr); }
	.sp-card { height: auto; padding-bottom: 48px; }
	.sp-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }
	.sp-footer__inner { grid-template-columns: 1fr 1fr; }
	.sp-footer__brand { grid-column: span 2; }
}

/* Mobile — matches the Figma Handoff mobile frames (393px; Home = node 2574:2393).
   Decorative product UIs (claims table, card UIs, market analysis) are the
   desktop components scaled down with `zoom`, exactly as the design does. */
@media (max-width: 640px) {
	.sp-page { --sp-gutter: 24px; }
	.sp-h2 { font-size: 36px; }
	.sp-h3 { font-size: 32px; letter-spacing: 0; }
	.sp-h4 { font-size: 24px; }
	.sp-h5 { font-size: 20px; }
	/* Heading accent: 6×5.2 after H2s, 9×7.8 after H1s */
	.sp-h2 .sp-tri { width: 6px; height: 5.2px; margin-left: 6px; }
	.sp-phero__title .sp-tri, .sp-chero__title .sp-tri { margin-left: 5px; }

	/* Buttons — mobile frames use #e0e7f2 for the light fill and the outline, and no border on filled buttons (36px tall) */
	.sp-btn--light { --sp-btn-bg: var(--sp-light-blue); }
	.sp-btn--outline { --sp-btn-border: var(--sp-light-blue); --sp-btn-fg: var(--sp-light-blue); padding-left: 24px; padding-right: 24px; }
	.sp-btn--dark, .sp-btn--light, .sp-btn--green { border-width: 0; }

	/* Navbar — Figma "Navbar - closed" (2446:12198): 49px bar + 56px slants, tips on the gutter; logo and toggle sit on the bar's edges */
	.sp-nav { top: 25px; padding: 0 calc(var(--sp-gutter, 24px) + 28px); } /* slant tips sit on the page gutter */
	.admin-bar .sp-nav { top: 71px; }
	.sp-nav__bar { height: 49px; padding: 0; }
	.sp-nav__bar::before, .sp-nav__bar::after { width: 56px; height: 49px; }
	.sp-nav__bar::before { left: -28px; }
	.sp-nav__bar::after { right: -28px; }
	.sp-nav__logo svg { width: 113px; height: 22.34px; }
	/* Hamburger 18×11.25 (three 1.125px lines); open: an ✕ */
	.sp-nav__toggle { width: 32px; height: 32px; margin-right: -7px; }
	.sp-nav__toggle-bars, .sp-nav__toggle-bars::before, .sp-nav__toggle-bars::after { width: 18px; height: 1.125px; }
	.sp-nav__toggle-bars::before { top: -5.0625px; }
	.sp-nav__toggle-bars::after { top: 5.0625px; }
	.sp-nav.is-open .sp-nav__toggle-bars::before,
	.sp-nav.is-open .sp-nav__toggle-bars::after { width: 26px; left: -4px; }
	.sp-nav.is-open .sp-nav__toggle-bars::before { transform: translateY(5.0625px) rotate(45deg); }
	.sp-nav.is-open .sp-nav__toggle-bars::after { transform: translateY(-5.0625px) rotate(-45deg); }

	/* Hero: title → claims table → intro + stacked buttons. Plain gradient, no pattern. */
	.sp-hero { min-height: 0; }
	.sp-hero__pattern { display: none; }
	.sp-hero__inner { padding: 121px 24px 68px 22px; }
	.sp-badge { margin-left: 23px; }
	.sp-badge span { max-width: 196px; }
	.sp-badge::before, .sp-badge::after { width: 46px; height: 40px; }
	.sp-badge::before { left: -23px; }
	.sp-badge::after { right: -23px; }
	.sp-hero__title { margin-top: 38px; font-size: 44px; } /* Mobile/H1 */
	.sp-hero__title-accent .sp-tri { position: relative; left: -14px; margin: -4px 0 0 0; } /* offset, not negative margin: keeps the clip-text box wide enough for the last letter */
	.sp-hero__bottom { gap: 42px; margin-top: 67px; padding-left: 2px; }
	.sp-hero__aside { order: 0; }
	.sp-hero__aside .sp-btn-group { flex-direction: column; align-items: flex-start; }
	.sp-hero__aside .sp-btn { padding-left: 24px; padding-right: 24px; }

	/* Opportunity: full-width centred rows, ▼ label ▼ over the bold line, no slanted tab */
	.sp-opp { padding: 100px 0 41px; }
	.sp-split { gap: 85px; margin-top: 40px; }
	.sp-compare { align-items: stretch; }
	.sp-compare li { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; margin-right: 0; padding: 8px 0; text-align: center; }
	.sp-compare li::after, .sp-compare .sp-arrow { display: none; }
	.sp-compare__from { display: inline-flex; align-items: center; gap: 8px; }
	.sp-compare__from::before, .sp-compare__from::after {
		content: ""; width: 9px; height: 7.8px; background: var(--sp-green); clip-path: polygon(0 0, 100% 0, 50% 100%);
	}
	.sp-opp__statement { margin-top: 62px; font-size: 24px; }

	/* Platform cards: fixed height, UI cropped by the bottom fade */
	.sp-platform { padding: 100px 0 60px; }
	.sp-cards { margin-top: 18px; }
	.sp-card { height: 430px; padding: 19px; gap: 16px; border-width: .79px; }
	.sp-card::after { height: 116px; }
	.sp-card__title { max-width: 250px; margin-top: 16px; }
	.sp-card__reveal { margin-top: 16px; }
	.sp-card .sp-link { margin-top: 16px; }
	.sp-card__ui { margin-top: 24px; }

	/* Approach: desktop visual scaled to 345px, benefits in two columns */
	.sp-approach { padding: 100px 0 80px; }
	.sp-approach__intro { margin-top: 20px; }
	.sp-approach__grid { gap: 45px; margin-top: 51px; }
	.sp-approach__visual { height: auto; aspect-ratio: 624 / 388; }

	.sp-benefits { gap: 16px 18px; }
	.sp-benefits li:last-child:nth-child(odd) { grid-column: auto; }
	.sp-benefits__rule { margin-bottom: 13px; }
	.sp-benefits h3, .sp-benefits p { padding-left: 16px; }

	/* Closing CTA */
	.sp-cta { min-height: 0; }
	.sp-cta__lines { display: none; }
	.sp-cta__lines--mobile { display: block; top: 92px; width: 503px; height: 485px; transform: translateX(calc(-50% - 7px)); }
	.sp-cta__inner { padding: 72px var(--sp-gutter); }
	.sp-cta__title { font-size: 24px; line-height: 1.05; }
	.sp-cta__title span { white-space: nowrap; }

	/* Footer: brand / Platform + Company / Get started */
	.sp-footer__inner { grid-template-columns: minmax(0, 1fr) 138px; gap: 48px 34px; padding: 60px 24px 40px; }
	.sp-footer__brand, .sp-footer__col:last-child { grid-column: span 2; }
	.sp-footer__col:last-child { padding-bottom: 31px; }
	.sp-footer__bottom p { padding: 20px 24px 20px 25px; }
}

/* Child pages — no mobile frames yet; these follow the home page's mobile type scale. */
@media (max-width: 1280px) {
	.sp-phero__grid { left: auto; right: -480px; }
	.sp-versus__item--assumption { left: 120px; }
	.sp-versus__item--reality { left: auto; right: -80px; }
	.sp-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-pfsplit__visual { width: 50%; }

	.sp-leaders { width: 50%; }
}

@media (max-width: 1100px) {
	.sp-phero, .sp-pf--ops .sp-phero { min-height: 0; }
	.sp-phero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
	.sp-phero__visual { overflow: hidden; max-width: 100%; }
	.sp-phero__title, .sp-ahero__title, .sp-chero__title, .sp-h1 { font-size: 64px; }
	.sp-versus { height: auto; display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
	.sp-versus__item, .sp-versus__item--assumption, .sp-versus__item--reality { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: 652px; height: auto; padding: 24px 32px 32px; }
	.sp-versus__item--reality { align-self: flex-end; }
	.sp-versus__text, .sp-versus__item--reality .sp-versus__text { width: auto; max-width: 360px; margin: 24px 0 0; }
	.sp-versus__item--assumption { background: var(--sp-light-blue); }
	.sp-versus__item--reality { background: var(--sp-black); }
	.sp-pfs--side .sp-pfs__head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sp-features, .sp-pfs--side .sp-features, .sp-pfs--plain .sp-features { margin-top: 56px; }
	.sp-features { grid-template-columns: minmax(0, 1fr); }
	.sp-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-results__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sp-pfsplit__inner, .sp-backers__inner, .sp-aintro__top { flex-direction: column; align-items: flex-start; }
	.sp-pfsplit__visual, .sp-pfsplit__copy, .sp-leaders { width: 100%; }

	.sp-ahero__bottom, .sp-chero__inner { grid-template-columns: minmax(0, 1fr); }
	/* Contact: title → intro → form → steps → reach cards */
	.sp-chero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.sp-chero__copy { display: contents; }
	.sp-chero__title { order: 1; }
	.sp-chero__intro { order: 2; margin-top: 8px; }
	.sp-chero .sp-form { order: 3; margin-top: 84px; }
	.sp-steps { order: 4; margin-top: 80px; }
	.sp-reach { order: 5; grid-template-columns: minmax(0, 1fr); max-width: none; margin-top: 80px; }
	.sp-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-band__inner { flex-direction: column; align-items: flex-start; }
	.sp-band__actions { width: 100%; }
	.sp-form { min-height: 0; }
}

/* Child pages mobile — Figma Handoff mobile frames (393px): Price Confidence 2574:132,
   Estimate Accuracy 2574:587, Operational Intelligence 2574:1098, About 2574:1930, Contact 2574:1742. */
@media (max-width: 640px) {
	/* Platform hero: badge → title → intro → button → UI; the triangle grid starts at the button */
	.sp-phero__inner { padding: 98px var(--sp-gutter) 59px; }
	.sp-phero__grid { top: 434px; left: -137px; right: auto; width: 769px; height: 740px; }
	.sp-pf--estimate .sp-phero__grid { top: 525px; }
	.sp-badge--light { margin-left: 14px; }
	.sp-badge--light span { max-width: none; }
	.sp-badge--light::before, .sp-badge--light::after { width: 16.17px; height: 28px; }
	.sp-badge--light::before { left: -16.17px; }
	.sp-badge--light::after { right: -16.17px; }
	.sp-phero__title, .sp-ahero__title, .sp-chero__title, .sp-h1 { font-size: 44px; } /* Mobile/H1 */
	.sp-phero__title { margin-top: 29px; }
	.sp-phero__intro { margin-top: 24px; }
	.sp-pf--ops .sp-phero__intro { margin-top: 26px; }
	.sp-pf--price .sp-phero__intro { margin-top: 0; }
	.sp-pf--price .sp-phero__visual { margin-top: 122px; }
	.sp-pf--estimate .sp-phero__visual { margin-top: 151px; }
	.sp-pf--ops .sp-phero__visual { margin-top: 65px; }

	/* Section heading + feature cards */
	.sp-pfs, .sp-pfs--compare { padding: 72px 0 56px; }
	.sp-pfs--side { padding: 110px 0 74px; }
	.sp-pfs--side .sp-pfs__head { gap: 17px; }
	.sp-pfs--compare .sp-pfs__body { margin-top: 16px; }
	.sp-pfs--plain .sp-features { margin-top: 50px; }
	/* Price Confidence: the two slanted panels (345×119.5 in Figma) stack flush. Drawn with
	   clip-path rather than the desktop SVGs, whose triangle seams show when scaled down;
	   they grow if the copy runs longer than the design's. */
	.sp-versus { gap: 0; margin-bottom: 68px; }
	.sp-versus__item, .sp-versus__item--assumption, .sp-versus__item--reality {
		height: auto; min-height: 119.5px; padding: 9px 0 16px 19px;
		clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
	}
	.sp-versus__text, .sp-versus__item--reality .sp-versus__text { width: 232px; max-width: none; margin: 16px 0 0 50px; font-size: 14px; }
	.sp-feature { padding: 19px 19px 27px; } /* + 1px border = Figma's 20/28 */
	.sp-features--4 { grid-template-columns: minmax(0, 1fr); }
	.sp-feature__title { margin-top: 24px; }
	.sp-feature__text { margin-top: 32px; }

	/* The result: plain full-width rows (Figma 2570:319) */
	.sp-results { padding: 100px 0 92px; }
	.sp-pf--price .sp-results { padding-bottom: 123px; }
	.sp-results__inner { gap: 40px; }
	.sp-results__list { align-items: stretch; gap: 1px; padding: 0; }
	.sp-results__row { width: 100%; min-width: 0; max-width: none; min-height: 78px; gap: 16px; padding: 12px 0 12px 12px; }
	.sp-results__row::after { display: none; }
	.sp-results__text { font-size: 14px; line-height: 1.5; white-space: normal; }

	/* Operational Intelligence split: heading + body, then the visual */
	.sp-pfsplit { padding: 72px 0 90px; }
	.sp-pfsplit__inner { gap: 56px; }
	.sp-pfsplit__copy { order: -1; }
	.sp-pfsplit__copy .sp-body { margin-top: 26px; }

	/* Closing band: Mobile/H4 heading, stacked buttons */
	.sp-band { padding: 91px var(--sp-gutter); }
	.sp-band__title { font-size: 24px; line-height: 1.05; }
	.sp-band__actions { flex-wrap: wrap; }
	.sp-band--stacked .sp-band__actions { flex-direction: column; align-items: flex-start; gap: 8px; }
	.sp-band__rule { display: none; }

	/* About hero: no mark; title, intro + button, then the video */
	.sp-ahero { padding: 199px 0 106px; }
	.sp-ahero__pattern { left: -900px; top: 300px; }
	.sp-ahero__mark { display: none; }
	.sp-ahero__title { margin-top: 0; }
	.sp-ahero__bottom { gap: 95px; margin-top: 9px; }
	.sp-video__icon { width: 36px; height: 36px; }
	.sp-video__icon img { width: 31px; height: 27px; margin-top: -9px; }
	.sp-aintro { padding: 72px 0 56px; }
	.sp-aintro__top { gap: 70px; }
	.sp-aintro__body { margin-top: 28px; }

	/* About pillars: black → blue, no line art */
	.sp-pillars { grid-template-columns: minmax(0, 1fr); margin-top: 95px; }
	.sp-pillar { min-height: 0; padding: 20px 20px 32px; background: linear-gradient(180deg, var(--sp-black) 0%, var(--sp-blue) 100%); }
	.sp-pillar::after, .sp-pillar__lines { display: none; }
	.sp-team { padding: 72px 0 56px; }
	.sp-team__body { margin-top: 40px; }
	.sp-team__grid { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
	.sp-member__photo { height: 250px; }
	.sp-member__body { padding: 24px 24px 40px; }
	.sp-backers { padding: 24px 0 72px; }
	.sp-backers__inner { gap: 42px; }
	.sp-backers__copy .sp-body { margin-top: 22px; }
	.sp-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
	.sp-leader { padding: 8px; border-color: var(--sp-light-blue); }

	/* Contact: order and full-width cards come from the 1100px block */
	.sp-chero { padding: 122px 0 72px; }
	.sp-steps li { padding-right: 0; }
	.sp-reach li { padding: 32px 24px; }
	.sp-form { padding: 20px; gap: 32px; background: linear-gradient(180deg, var(--sp-black) 0%, var(--sp-blue) 100%); }
	.sp-form__success-title { font-size: 36px; }
	.sp-form__row { grid-template-columns: minmax(0, 1fr); gap: 32px 16px; }
	.sp-form__tabs + .sp-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-form__chips { gap: 12px; }
	.sp-form__chips legend { margin-bottom: -4px; } /* 8px label → chips, per Figma 2418:8227 */
	.sp-form__chips label { display: flex; } /* drop inline line-box so rows sit 12px apart */
	.sp-form__chips span { height: auto; padding: 4px 8px; font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
	.sp-field--area textarea { min-height: 233px; }
	.sp-form__check { line-height: normal; }
	.sp-form__foot { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.sp-page * { transition: none !important; }
}

/* ==========================================================================
   Product UI images — Figma exports (2x) in images/surepart/ui/, replaceable
   per page via ACF. Each slot is sized to its 1x design width.
   ========================================================================== */
.sp-ui-img { display: block; width: 100%; height: auto; }
.sp-ui-picture { display: block; }

.sp-hero__visual { min-width: 0; }

.sp-card__ui .sp-ui-img { width: 389px; max-width: 100%; } /* Figma frame incl. its 43px side margins */

.sp-approach__visual { height: auto; background: none; }

.sp-phero__visual { display: flex; align-items: center; justify-content: center; min-height: 484px; }
.sp-phero__visual .sp-ui-img { width: 465px; max-width: 100%; }
.sp-phero__visual--price .sp-ui-img { width: 342px; }

.sp-pfsplit__visual .sp-ui-img { width: 624px; max-width: 100%; }

.sp-aintro__visual { width: 420px; flex: none; margin-top: 14px; }

@media (max-width: 1100px) {
	.sp-phero__visual { min-height: 0; justify-content: flex-start; margin-top: 56px; }
	.sp-aintro__visual { width: 100%; max-width: 420px; margin-top: 0; }
}

/* Uploaded logo images (SurePart Settings → Logo) — same height as the default SVG logos. */
.sp-logo-img { display: block; width: auto; max-width: 240px; object-fit: contain; }
.sp-nav__logo .sp-logo-img { height: 30px; }
.sp-footer__logo.sp-logo-img { height: 32px; }
@media (max-width: 640px) {
	.sp-nav__logo .sp-logo-img { height: 22.34px; }
}
