/* ======================================================================
 * Pabau referral landing — section styles (front page only).
 * Tokens come from style.css.
 * ====================================================================== */

/* ============ HERO ============ */
.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, #071630 0%, #0E2E5E 40%, #1E64BA 78%, #3D93E0 100%);
	color: #fff;
}
.hero::before {
	content: ""; position: absolute; right: -8%; bottom: -20%; z-index: 0; pointer-events: none;
	width: 70%; height: 140%;
	background: radial-gradient(closest-side, rgba(36,190,225,.28), rgba(36,190,225,0) 70%);
	opacity: .9;
}
.hero__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
	padding: 76px 0 96px;
}
.eyebrow {
	display: inline-flex; align-items: center;
	background: rgba(6,16,32,.55); border: 1px solid rgba(255,255,255,.14);
	color: #EAF3FB; font-size: 12px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; padding: 8px 15px; border-radius: 999px; gap: 8px;
	margin-bottom: 22px;
}
.eyebrow svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hero h1 {
	font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; font-weight: 700;
	letter-spacing: -.02em; margin: 0 0 20px; max-width: 15ch;
}
.hero h1 .accent { color: var(--yellow); }
.hero__lead { font-size: 17px; line-height: 1.6; color: #FBFDFF; max-width: 50ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { border-radius: 999px; padding: 15px 28px; font-size: 16px; }
.hero__trust { display: flex; align-items: center; gap: 11px; margin-top: 22px; }
.hero__stars { display: inline-flex; gap: 1px; }
.hero__trust-text { font-size: 14px; font-weight: 500; color: #FBFDFF; }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 480px; animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__photo {
	position: relative; filter: drop-shadow(0 26px 52px rgba(2,12,28,.45));
}
.hero__photo img { width: 100%; height: auto; display: block; border-radius: 22px; }
.hero__notif {
	position: absolute; right: calc(-4% - 10px); bottom: calc(8% - 10px); z-index: 3;
	width: min(224px, 72%); background: rgba(9,20,38,.34);
	backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 14px; padding: 12px 13px;
	box-shadow: 0 18px 40px rgba(2,12,28,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.hero__notif-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.hero__notif-badge {
	width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
	background: linear-gradient(135deg, #037CD2, #24BEE1);
	display: flex; align-items: center; justify-content: center;
}
.hero__notif-label { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #EAF1FB; }
.hero__notif-time { margin-left: auto; font-size: 9px; color: #C7D5E8; }
.hero__notif-body { font-size: 12.5px; font-weight: 600; color: #fff; line-height: 1.38; margin-bottom: 9px; }
.hero__notif-earn { color: var(--yellow); }
.hero__notif-bar { height: 7px; border-radius: 5px; background: rgba(255,255,255,.28); margin-bottom: 6px; }
.hero__notif-bar.sm { width: 62%; }

#how-it-works, #referral-form, #industries, #faq { scroll-margin-top: 88px; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(30px, 3.3vw, 40px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; color: var(--navy); }
.section__head p { font-size: 16px; color: var(--muted); margin: 0; }
#how-it-works { background: #F7F9FC; }

/* ============ HOW IT WORKS ============ */
.steps { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
.step {
	position: relative; z-index: 1; overflow: hidden;
	background: var(--navy); color: #fff; border-radius: 20px; padding: 30px 28px;
	border: 1px solid rgba(255,255,255,.07);
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(53,151,224,.6); box-shadow: 0 22px 46px rgba(2,12,28,.42); }
.step__ghost { position: absolute; right: 18px; top: -12px; font-size: 120px; font-weight: 900; line-height: 1; color: #fff; opacity: .04; pointer-events: none; letter-spacing: -.04em; }
.step__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.step__icon {
	flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(3,124,210,.16); border: 1px solid rgba(53,151,224,.55); color: #4EA5EA;
	transition: transform .25s ease;
}
.step:hover .step__icon { transform: scale(1.06) rotate(-3deg); }
.step__icon svg { width: 26px; height: 26px; }
.step__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4EA5EA; margin-bottom: 3px; }
.step__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.step__body { font-size: 14.5px; line-height: 1.6; color: #E9EFF6; margin: 0; }
.step-arrow { display: flex; align-items: center; justify-content: center; width: 56px; align-self: center; color: #4EA5EA; }
.step-arrow svg { width: 26px; height: 26px; }
.steps > :nth-child(1) { transition-delay: 0s; }
.steps > :nth-child(2) { transition-delay: .10s; }
.steps > :nth-child(3) { transition-delay: .20s; }
.steps > :nth-child(4) { transition-delay: .30s; }
.steps > :nth-child(5) { transition-delay: .40s; }

/* ============ WHO YOU CAN REFER ============ */
.industries { background: #F7F9FC; padding: 44px 0; }
.refer-band { display: grid; grid-template-columns: 185px 1fr; gap: 22px; align-items: stretch; }
.refer-heading { margin: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; border-right: 1px solid var(--line); padding-right: 22px; }
.refer-heading__eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.refer-heading__num {
	font-size: clamp(32px, 3vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin: 4px 0 6px;
	background: linear-gradient(90deg, #3B84D8 0.51%, #AB5CF6 53.64%); -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent; width: max-content; max-width: 100%;
}
.refer-heading__rest { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.refer-rows { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.refer-track {
	position: relative; overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.refer-marquee { display: flex; width: max-content; will-change: transform; animation: refer-scroll 48s linear infinite; }
.refer-set { display: flex; flex: 0 0 auto; }
.refer-rows .refer-track:nth-child(2) .refer-marquee { animation-duration: 58s; animation-direction: reverse; }
.refer-rows .refer-track:nth-child(3) .refer-marquee { animation-duration: 52s; }
@keyframes refer-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.refer-tag {
	font-size: 12px; font-weight: 600; color: #42506A; background: #fff;
	border: 1px solid #E1E6EF; border-radius: 7px; padding: 5px 10px; white-space: nowrap; display: inline-block;
	margin-right: 7px; user-select: none; -webkit-user-select: none;
}

/* ============ REFERRAL FORM ============ */
.form-section {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, #071630 0%, #0E2E5E 40%, #1E64BA 78%, #3D93E0 100%);
	padding: 86px 0 92px;
}
.form-section::before {
	content: ""; position: absolute; right: -6%; bottom: -20%; z-index: 0; pointer-events: none;
	width: 60%; height: 130%;
	background: radial-gradient(closest-side, rgba(36,190,225,.22), rgba(36,190,225,0) 70%);
}
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
.cta-grid__form { grid-column: 1; grid-row: 1; }
.cta-grid__intro { grid-column: 2; grid-row: 1; color: #fff; }
.cta-grid__intro-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 16px; }
.cta-grid__intro-text { font-size: 16px; line-height: 1.6; color: #EAF2FB; max-width: 44ch; margin: 0 0 34px; }
.cta-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.cta-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #EAF2FB; font-weight: 500; }
.cta-benefits__check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(36,190,225,.16); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cta-benefits__check svg { width: 13px; height: 13px; }
.cta-testimonial {
	position: relative; margin: 40px 0 0; padding: 26px 26px 22px; border-radius: 18px; overflow: hidden;
	background: linear-gradient(160deg, rgba(36,190,225,.12), rgba(255,255,255,.05) 42%, rgba(255,255,255,.03));
	border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 34px rgba(2,18,38,.28);
}
.cta-testimonial::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--teal), rgba(36,190,225,0)); }
.cta-testimonial blockquote { position: relative; margin: 0; font-size: 15.5px; line-height: 1.6; color: #F3F8FE; font-weight: 500; font-style: italic; }
.cta-testimonial blockquote strong { font-weight: 700; color: #fff; font-style: italic; }
.cta-testimonial blockquote::before { content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 66px; line-height: 1; color: var(--teal); margin: 0 0 -20px -3px; }
.cta-testimonial figcaption { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.cta-testimonial__avatar {
	width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #037CD2, #24BEE1);
	border: 2px solid rgba(36,190,225,.6); box-shadow: 0 3px 10px rgba(2,18,38,.35);
}
.cta-testimonial__meta { display: flex; flex-direction: column; gap: 2px; }
.cta-testimonial__name { font-size: 14px; font-weight: 700; color: #fff; }
.cta-testimonial__role { font-size: 12.5px; color: #B9CBE0; }

.lead-form { background: #fff; border-radius: 20px; padding: 36px 38px 30px; box-shadow: 0 30px 70px rgba(2,12,28,.5), 0 2px 6px rgba(2,12,28,.2); }
.lead-form__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.lead-form__brand svg { height: 42px; width: auto; display: block; }
.lead-form__brand-text { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #3D3D46; line-height: 1; }
.lead-form__divider { border: none; border-top: 1px solid #EAEEF4; margin: 0 0 24px; }
.lead-form__group { border: none; background: none; padding: 0; margin: 0; }
.lead-form__group--you { margin-top: 26px; padding-top: 24px; border-top: 1px solid #EAEEF4; }
.lead-form__grouphead { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.lead-form__badge { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #EEF2F7; color: var(--navy); font-weight: 700; font-size: 15px; }
.lead-form__grouptitle { display: block; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); line-height: 1.25; }
.lead-form__caption { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.field {
	width: 100%; height: 50px; padding: 0 16px; margin-bottom: 11px;
	border: 1px solid #D9DFE7; border-radius: 10px; font-size: 15px; color: var(--navy);
	background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: #9AA3AF; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3,124,210,.12); }
.field.is-invalid { border-color: #D92D20; box-shadow: 0 0 0 3px rgba(217,45,32,.10); }
.field-error { color: #D92D20; font-size: 12.5px; margin: -6px 0 10px; min-height: 0; }
.field-error:empty { margin: 0; }
.lead-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__message { font-size: 13.5px; margin: 6px 0 0; }
.lead-form__message.is-error { color: #D92D20; }
.lead-form .btn--yellow { width: 100%; height: 54px; font-size: 16.5px; font-weight: 700; border-radius: 12px; margin-top: 14px; }
.lead-form .btn.is-loading { opacity: .7; pointer-events: none; }

/* success state */
.lead-form__success { text-align: center; padding: 14px 6px 8px; }
.lead-form__success-icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: #E7F7EE; display: flex; align-items: center; justify-content: center; animation: successPop .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes successPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lead-form__success-icon svg { width: 34px; height: 34px; color: #22A45D; }
.lead-form__success-title { font-size: 24px; font-weight: 700; letter-spacing: -.015em; color: var(--navy); margin-bottom: 8px; }
.lead-form__success-text { font-size: 14.5px; line-height: 1.55; color: #5B6472; margin: 0 auto 22px; max-width: 40ch; }
.lead-form__success-block { text-align: left; margin-top: 14px; }
.lead-form__success-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.lead-form__success-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.lead-form__linkrow { display: flex; gap: 8px; }
.lead-form__linkfield { flex: 1; height: 46px; padding: 0 14px; border: 1px solid #D9DFE7; border-radius: 10px; font-size: 14px; color: var(--navy); background: #F7F9FC; }
.lead-form__copy { flex: 0 0 auto; height: 46px; padding: 0 18px; border-radius: 10px; border: none; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s ease; }
.lead-form__copy:hover { background: var(--blue-dark); }
.lead-form__copy.is-copied { background: #22A45D; }
.lead-form__success-block--dash { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid #EAEEF4; }
.lead-form__dash-copy { min-width: 0; }
.lead-form__dash-copy .lead-form__success-hint { margin-top: 4px; }
.lead-form__dash-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .16s ease, transform .16s ease; white-space: nowrap; }
.lead-form__dash-btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }

/* ============ FAQ ============ */
.faq-section { background: #F7F9FC; }
.faq-box { max-width: 960px; margin: 0 auto; }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.faq-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 14px; padding: 18px 20px; cursor: pointer; text-align: left; font: inherit; background: transparent; border: none; color: inherit; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--navy); transition: color .18s ease; }
.faq-chev { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #F1F5F9; color: #64748B; transition: transform .2s ease, background .18s ease, color .18s ease; }
.faq-trigger[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-item:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(3,124,210,.10); transform: translateY(-1px); }
.faq-item:hover .faq-q { color: var(--blue); }
.faq-item:hover .faq-chev { background: var(--blue); color: #fff; }
.faq-panel[hidden] { display: none; }
.faq-answer { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: #475569; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
	.hero__inner { gap: 36px; padding: 64px 0 84px; }
	.hero__visual { max-width: 420px; }
	.section { padding: 72px 0; }
	.form-section { padding: 72px 0 80px; }
	.cta-grid { gap: 44px; }
}
@media (max-width: 920px) {
	.hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 64px; }
	.hero h1 { max-width: 20ch; }
	.hero__lead { max-width: 60ch; }
	.hero__visual { justify-self: center; max-width: 440px; animation: none; }
	.steps { grid-template-columns: 1fr; gap: 16px; }
	.step-arrow { transform: rotate(90deg); width: auto; padding: 2px 0; }
	.section__head { margin-bottom: 40px; }
	.cta-grid { grid-template-columns: 1fr; gap: 36px; }
	.cta-grid__form { grid-column: 1; grid-row: 1; }
	.cta-grid__intro { grid-column: 1; grid-row: 2; text-align: left; }
	.cta-grid__intro-text { margin-left: 0; margin-right: 0; max-width: 100%; }
	.refer-band { grid-template-columns: 1fr; gap: 16px; }
	.refer-heading { align-items: flex-start; text-align: left; border-right: none; padding-right: 0; }
	.faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hero__inner { padding: 40px 0 52px; gap: 36px; }
	.eyebrow { font-size: 11px; padding: 7px 13px; margin-bottom: 18px; letter-spacing: .12em; }
	.hero h1 { font-size: clamp(30px, 8.5vw, 40px); max-width: 100%; margin-bottom: 16px; }
	.hero__lead { font-size: 16px; max-width: 100%; margin-bottom: 24px; }
	.hero__actions .btn { width: 100%; justify-content: center; padding: 15px 24px; }
	.hero__trust { flex-wrap: wrap; gap: 8px 10px; }
	.hero__visual { max-width: 100%; }
	.hero__notif { width: min(210px, 66%); right: calc(-2% - 10px); bottom: calc(6% - 10px); padding: 11px 12px; }
	.section { padding: 56px 0; }
	.section__head { margin-bottom: 32px; }
	.step { padding: 26px 22px; }
	.step__ghost { font-size: 96px; }
	.form-section { padding: 52px 0 60px; }
	.lead-form { padding: 26px 20px 24px; border-radius: 18px; }
	.lead-form__brand svg { height: 34px; }
	.lead-form__brand-text { font-size: 20px; }
	.lead-form__grouptitle { font-size: 16.5px; }
	.field { height: 48px; font-size: 16px; }
	.lead-form .btn--yellow { height: 52px; }
	.cta-grid__intro-title { font-size: 24px; }
	.cta-benefits { gap: 18px; }
	.cta-testimonial { margin-top: 28px; padding: 22px 20px 20px; border-radius: 16px; }
	.refer-heading__num { font-size: 32px; }
	.industries { padding: 36px 0; }
	.faq-trigger { padding: 15px 16px; }
	.faq-q { font-size: 15px; }
	.faq-answer { padding: 0 16px 16px; font-size: 13.5px; }
	.lead-form__linkrow { flex-direction: column; gap: 10px; }
	.lead-form__copy { height: 44px; }
	.lead-form__success-block--dash { flex-direction: column; align-items: stretch; gap: 14px; }
	.lead-form__dash-btn { width: 100%; }
}
