/* Tabi Case Study Flipbook
 *
 * Everything is scoped under #tfb (the popup root, appended to <body>) and
 * key properties carry !important: Hello Elementor's reset.css and the
 * Elementor Kit (.elementor-kit-N, on <body>) style bare button, a, img and
 * h2 globally, which would otherwise repaint the popup's controls in the
 * theme's pink/accent styles.
 *
 * Book geometry comes from JS: --pw/--ph are the page size in px and --u is
 * 1% of the page's short side, so the generated covers scale with the book.
 */

/* ── Trigger button (shortcode) ───────────────────────────────────────── */
a.tfb-btn, .tfb-btn {
	display: inline-flex !important; align-items: center !important; gap: 8px !important;
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
	font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: 0.01em !important;
	text-transform: none !important; text-decoration: none !important;
	color: #fff !important; background: #0724D0 !important; border: 1px solid #0724D0 !important;
	border-radius: 10px !important; padding: 14px 26px !important; box-shadow: none !important;
	cursor: pointer; transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
a.tfb-btn:hover, a.tfb-btn:focus, .tfb-btn:hover, .tfb-btn:focus {
	color: #fff !important; background: #4162E1 !important; border-color: #4162E1 !important;
	box-shadow: 0 10px 24px rgba(7,36,208,0.28) !important; transform: translateY(-2px);
}
.tfb-btn__arrow { display: inline-block; transition: transform .18s ease; }
.tfb-btn:hover .tfb-btn__arrow { transform: translateX(3px); }

/* ── Popup shell ──────────────────────────────────────────────────────── */
#tfb, #tfb * { box-sizing: border-box; }
#tfb {
	position: fixed !important; inset: 0 !important; z-index: 999999 !important; display: flex !important;
	margin: 0 !important; padding: 0 !important;
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; color: #fff; text-align: left;
	-webkit-font-smoothing: antialiased;
}
#tfb[hidden] { display: none !important; }
#tfb img { max-width: none; height: auto; border: 0 !important; border-radius: 0; box-shadow: none !important; }
#tfb a { font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important; }
#tfb button {
	-webkit-appearance: none !important; appearance: none !important;
	font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important;
	min-width: 0 !important; min-height: 0 !important; margin: 0 !important; box-shadow: none !important; cursor: pointer;
}
#tfb .tfb__backdrop { position: absolute; inset: 0; background: rgba(23,18,46,0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s ease; }
#tfb.is-open .tfb__backdrop { opacity: 1; }
#tfb .tfb__panel { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 18px 28px 16px; pointer-events: none; }
#tfb .tfb__bar, #tfb .tfb__nav { position: relative; z-index: 2; pointer-events: auto; opacity: 0; transition: opacity .35s ease .1s, transform .35s ease .1s; }
#tfb .tfb__bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; transform: translateY(-10px); }
#tfb .tfb__nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 14px; transform: translateY(10px); }
#tfb.is-open .tfb__bar, #tfb.is-open .tfb__nav { opacity: 1; transform: none; }
#tfb .tfb__id { display: flex; align-items: center; gap: 14px; min-width: 0; margin-right: auto; }
#tfb .tfb__chip { background: #fff; border-radius: 10px; padding: 7px 12px; flex-shrink: 0; display: flex; align-items: center; }
#tfb .tfb__chip[hidden] { display: none; }
#tfb .tfb__chip img { height: 28px !important; width: auto !important; max-width: 120px !important; object-fit: contain; display: block; }
#tfb .tfb__eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #A0B1F0 !important; }
#tfb .tfb__title { font-family: inherit !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.25 !important; color: #fff !important; margin: 2px 0 0 !important; padding: 0 !important; letter-spacing: -0.01em !important; text-transform: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tfb .tfb__tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px; }
#tfb .tfb__tabs:empty { display: none; }
#tfb .tfb__tab { font-size: 12px !important; font-weight: 600 !important; line-height: 1.2 !important; color: rgba(255,255,255,0.75) !important; background: transparent !important; border: none !important; border-radius: 999px !important; padding: 8px 14px !important; white-space: nowrap; transition: background .2s ease, color .2s ease; }
#tfb .tfb__tab:hover, #tfb .tfb__tab:focus { color: #fff !important; background: rgba(255,255,255,0.08) !important; }
#tfb .tfb__tab.is-active { background: #fff !important; color: #0724D0 !important; }
#tfb .tfb__actions { display: flex; align-items: center; gap: 10px; }
#tfb .tfb__dl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important; color: #fff !important; background: transparent !important; border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 10px !important; padding: 11px 16px !important; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
#tfb .tfb__dl:hover, #tfb .tfb__dl:focus { color: #fff !important; background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.7) !important; }
#tfb .tfb__btn { width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,0.25) !important; background: rgba(255,255,255,0.08) !important; color: #fff !important; display: inline-flex !important; align-items: center; justify-content: center; line-height: 0 !important; transition: background .2s ease, border-color .2s ease, opacity .2s ease, transform .15s ease; }
#tfb .tfb__btn:hover, #tfb .tfb__btn:focus-visible { background: #0724D0 !important; border-color: #0724D0 !important; color: #fff !important; }
#tfb .tfb__btn:active { transform: scale(0.94); }
#tfb .tfb__btn[disabled] { opacity: 0.3; pointer-events: none; }
#tfb .tfb__btn svg { display: block; }
#tfb .tfb__count { min-width: 150px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
#tfb .tfb__progress { display: block; height: 2px; margin-top: 8px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
#tfb .tfb__progress i { display: block; height: 100%; width: 0; background: #7089E9; transition: width .6s cubic-bezier(.645,.045,.355,1); }

/* ── Stage + book ─────────────────────────────────────────────────────── */
#tfb .tfb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px 0 4px; }
/* The open animation lives on the wrapper so it never fights the book's own centering transform. */
#tfb .tfb__lift { transform: translateY(26px) scale(0.9); opacity: 0; transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s ease; }
#tfb.is-open .tfb__lift { transform: none; opacity: 1; }
#tfb .tfb__status { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); text-align: center; }
#tfb .tfb__status a { color: #fff !important; background: #0724D0 !important; border-radius: 10px; padding: 11px 18px; font-size: 13px; }
#tfb .tfb__book { position: relative; pointer-events: auto; perspective: 2800px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.645,.045,.355,1); -webkit-user-select: none; user-select: none; }
#tfb .tfb__sheet { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.645,.045,.355,1); cursor: pointer; }
#tfb .tfb__sheet.is-flipped { transform: rotateY(-180deg); }
#tfb .tfb__sheet.no-anim, #tfb .tfb__sheet.no-anim .tfb__face { transition: none !important; }
#tfb .tfb__face { position: absolute; inset: 0; overflow: hidden; background: #fff; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
#tfb .tfb__face--back { transform: rotateY(180deg); }
#tfb .tfb--spread .tfb__face--front { border-radius: 0 6px 6px 0; }
#tfb .tfb--spread .tfb__face--back { border-radius: 6px 0 0 6px; }
#tfb .tfb--single .tfb__face { border-radius: 6px; }
#tfb .tfb__face > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
/* Spine shadow (spreads) and the travelling shade while a page turns. */
#tfb .tfb__face::before, #tfb .tfb__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
#tfb .tfb--spread .tfb__face--front::before { background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(0,0,0,0.05) 4%, transparent 9%); }
#tfb .tfb--spread .tfb__face--back::before { background: linear-gradient(270deg, rgba(0,0,0,0.22), rgba(0,0,0,0.05) 4%, transparent 9%); }
#tfb .tfb__face--front::after { background: linear-gradient(270deg, rgba(0,0,0,0.45), transparent 70%); opacity: 0; }
#tfb .tfb__face--back::after { background: linear-gradient(90deg, rgba(0,0,0,0.45), transparent 70%); opacity: 0; }
#tfb .tfb__sheet.is-turning .tfb__face::after { animation: tfbShade .9s ease-in-out; }
@keyframes tfbShade { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
/* Single-page mode: a turned page swings off to the left, then fades so it never lingers beside the book. */
#tfb .tfb--single .tfb__sheet { transition: transform .9s cubic-bezier(.645,.045,.355,1), opacity .15s ease; }
#tfb .tfb--single .tfb__sheet.is-flipped { opacity: 0; transition: transform .9s cubic-bezier(.645,.045,.355,1), opacity .25s ease .65s; }
#tfb .tfb__paper { position: absolute; inset: 0; background: linear-gradient(90deg, #EEF0F8, #FBFBFE 60%, #F1F3FD); }

/* Page placeholder while pdf.js renders it */
#tfb .tfb__spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(7,36,208,0.15); border-top-color: #0724D0; animation: tfbSpin .8s linear infinite; }
#tfb .tfb__status .tfb__spin { position: static; margin: 0; border-color: rgba(255,255,255,0.2); border-top-color: #fff; }
@keyframes tfbSpin { to { transform: rotate(360deg); } }

/* ── Generated pages: cover, inside cover, back cover ─────────────────── */
#tfb .tfb__cover, #tfb .tfb__inside, #tfb .tfb__back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 8); text-align: left; }
#tfb .tfb__cover { background: linear-gradient(157deg, #0A2AE0 0%, #0724D0 34%, #191042 100%); color: #fff; }
#tfb .tfb__cover::before { content: ""; position: absolute; top: -20%; right: -30%; width: 90%; height: 70%; background: radial-gradient(circle, rgba(112,137,233,0.4), transparent 70%); pointer-events: none; }
#tfb .tfb__cover-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
#tfb .tfb__cover-top img { height: calc(var(--u) * 7) !important; width: auto !important; display: block; }
#tfb .tfb__label { font-size: calc(var(--u) * 2.4); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #A0B1F0; }
#tfb .tfb__cover-main { margin-top: auto; position: relative; }
#tfb .tfb__cover-chip { display: inline-flex; background: #fff; border-radius: calc(var(--u) * 2); padding: calc(var(--u) * 2.6) calc(var(--u) * 3.6); margin-bottom: calc(var(--u) * 6); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
#tfb .tfb__cover-chip img { height: calc(var(--u) * 9) !important; width: auto !important; max-width: calc(var(--u) * 48) !important; object-fit: contain; display: block; }
#tfb .tfb__kpi { font-size: calc(var(--u) * 17); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff; margin-bottom: calc(var(--u) * 3); }
#tfb .tfb__head { font-size: calc(var(--u) * 5); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; max-width: 92%; margin-bottom: calc(var(--u) * 4); }
#tfb .tfb__tag { font-size: calc(var(--u) * 2.4); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #A0B1F0; }
#tfb .tfb__hint { margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 2.6); font-weight: 600; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: calc(var(--u) * 1.5); position: relative; }
#tfb .tfb__hint b { display: inline-block; animation: tfbNudge 1.4s ease-in-out infinite; font-weight: 700; }
@keyframes tfbNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(calc(var(--u) * 1.4)); } }
#tfb .tfb__inside { background: linear-gradient(160deg, #ECEFFF 0%, #F4F2FF 58%, #FBFAFF 100%); color: #1B1537; justify-content: center; }
#tfb .tfb__inside .tfb__label { color: #0724D0; margin-bottom: calc(var(--u) * 5); }
#tfb .tfb__inside img { height: calc(var(--u) * 11) !important; width: auto !important; max-width: calc(var(--u) * 60) !important; object-fit: contain; object-position: left center; display: block; margin-bottom: calc(var(--u) * 6); }
#tfb .tfb__inside .tfb__kpi { color: #0724D0; font-size: calc(var(--u) * 14); }
#tfb .tfb__inside .tfb__head { color: #1B1537; }
#tfb .tfb__inside .tfb__hint { color: #575756; }
#tfb .tfb__back { background: linear-gradient(157deg, #1B1537 0%, #191042 55%, #0724D0 130%); color: #fff; justify-content: center; }
#tfb .tfb__back .tfb__head { font-size: calc(var(--u) * 7); margin-bottom: calc(var(--u) * 3); }
#tfb .tfb__back p { font-size: calc(var(--u) * 3); line-height: 1.6; color: rgba(184,188,200,0.9); margin: 0 0 calc(var(--u) * 6); max-width: 90%; }
#tfb .tfb__back-row { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2.4); }
#tfb .tfb__back-row a { display: inline-flex; align-items: center; font-size: calc(var(--u) * 2.8) !important; font-weight: 600 !important; line-height: 1.2 !important; border-radius: calc(var(--u) * 1.6) !important; padding: calc(var(--u) * 2.6) calc(var(--u) * 4.4) !important; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
#tfb .tfb__back-row a:first-child { background: #fff !important; color: #0724D0 !important; border: 1px solid #fff !important; }
#tfb .tfb__back-row a:first-child:hover { background: #eef1ff !important; }
#tfb .tfb__back-row a + a { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.35) !important; }
#tfb .tfb__back-row a + a:hover { background: rgba(255,255,255,0.1) !important; }
#tfb .tfb__back-logo { position: absolute; left: calc(var(--u) * 8); bottom: calc(var(--u) * 8); height: calc(var(--u) * 6) !important; width: auto !important; opacity: 0.8; }

@media (max-width: 700px) {
	#tfb .tfb__panel { padding: 12px 12px 10px; }
	#tfb .tfb__bar { gap: 10px; }
	#tfb .tfb__chip { display: none; }
	#tfb .tfb__title { font-size: 15px !important; white-space: normal; }
	#tfb .tfb__dl span { display: none; }
	#tfb .tfb__dl { padding: 11px 12px !important; }
	#tfb .tfb__tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
	#tfb .tfb__count { min-width: 120px; }
}

/* ── Indexable case study page (templates/case-study.php) ──────────────
   Scoped to .tfb-cs; !important only where Hello Elementor / the Elementor
   Kit style bare h1-h3, p, a and img globally. */
a.tfb-btn.tfb-btn--white, .tfb-btn.tfb-btn--white { background: #fff !important; color: #0724D0 !important; border-color: #fff !important; }
a.tfb-btn.tfb-btn--white:hover, .tfb-btn.tfb-btn--white:hover { background: #eef1ff !important; color: #0724D0 !important; border-color: #eef1ff !important; }

.tfb-cs { background: linear-gradient(160deg, #ECEFFF 0%, #F4F2FF 58%, #FBFAFF 100%); color: #1B1537; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.6; padding: 36px 16px 72px; }
.tfb-cs *, .tfb-cs *::before, .tfb-cs *::after { box-sizing: border-box; }
.tfb-cs__wrap { max-width: 1120px; margin: 0 auto; }
.tfb-cs a { text-decoration: none !important; }
.tfb-cs__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #575756; margin-bottom: 28px; }
.tfb-cs__crumbs a { color: #0724D0 !important; font-weight: 600; }
.tfb-cs__crumbs a:hover { text-decoration: underline !important; }

.tfb-cs__hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 48px; }
.tfb-cs__eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0724D0; margin-bottom: 14px; }
.tfb-cs .tfb-cs__title { font-family: inherit !important; font-size: clamp(30px, 4.4vw, 52px) !important; font-weight: 800 !important; line-height: 1.08 !important; letter-spacing: -0.03em !important; color: #1B1537 !important; margin: 0 0 18px !important; text-transform: none !important; }
.tfb-cs .tfb-cs__lead { font-size: 18px !important; line-height: 1.7 !important; color: #575756 !important; margin: 0 0 28px !important; max-width: 640px; }
.tfb-cs__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tfb-cs a.tfb-cs__ghost { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: #1B1537 !important; border: 1px solid rgba(27,21,55,0.25); border-radius: 10px; padding: 13px 22px; transition: border-color .2s ease, color .2s ease; }
.tfb-cs a.tfb-cs__ghost:hover { border-color: #0724D0; color: #0724D0 !important; }
.tfb-cs__card { background: #fff; border: 1px solid #E5E8F6; border-radius: 16px; padding: 30px 28px; box-shadow: 0 24px 60px rgba(7,36,208,0.10); }
.tfb-cs__card img { display: block; height: 64px !important; width: auto !important; max-width: 100% !important; object-fit: contain; object-position: left center; margin: 0 0 22px; }
.tfb-cs__kpi { font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #0724D0; margin-bottom: 10px; }
.tfb-cs__company { font-size: 14px; font-weight: 700; color: #575756; }

.tfb-cs__body { background: #fff; border: 1px solid #E5E8F6; border-radius: 16px; padding: clamp(24px, 4vw, 48px); margin-bottom: 48px; }
.tfb-cs__doc + .tfb-cs__doc { margin-top: 40px; padding-top: 40px; border-top: 1px solid #E5E8F6; }
.tfb-cs .tfb-cs__body h2 { font-family: inherit !important; font-size: 26px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #1B1537 !important; margin: 0 0 18px !important; text-transform: none !important; letter-spacing: -0.02em !important; }
.tfb-cs .tfb-cs__body h3 { font-family: inherit !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.3 !important; color: #1B1537 !important; margin: 28px 0 10px !important; text-transform: none !important; letter-spacing: -0.01em !important; }
.tfb-cs .tfb-cs__body p { font-size: 16px !important; line-height: 1.8 !important; color: #3d3d3c !important; margin: 0 0 16px !important; max-width: 760px; }
.tfb-cs .tfb-cs__body .tfb-cs__pdf-link { margin-top: 24px !important; }
.tfb-cs__pdf-link a { color: #0724D0 !important; font-weight: 700; }
.tfb-cs__pdf-link a:hover { text-decoration: underline !important; }

.tfb-cs__more { margin-bottom: 48px; }
.tfb-cs .tfb-cs__more h2, .tfb-cs .tfb-cs__cta h2 { font-family: inherit !important; font-size: clamp(24px, 3vw, 34px) !important; font-weight: 800 !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; color: #1B1537 !important; margin: 0 0 20px !important; text-transform: none !important; }
.tfb-cs__more ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tfb-cs__more li { margin: 0 !important; padding: 0 !important; }
.tfb-cs__more li a { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border: 1px solid #E5E8F6; border-radius: 14px; padding: 20px; color: #1B1537 !important; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.tfb-cs__more li a:hover { box-shadow: 0 18px 44px rgba(7,36,208,0.14); transform: translateY(-4px); border-color: #7089E9; }
.tfb-cs__more img { height: 36px !important; width: auto !important; max-width: 150px !important; object-fit: contain; object-position: left center; margin-bottom: 6px; }
.tfb-cs__more strong { font-size: 13px; font-weight: 700; color: #575756; }
.tfb-cs__more span { font-size: 15px; font-weight: 700; line-height: 1.4; }

.tfb-cs__cta { background: linear-gradient(157deg, #0A2AE0 0%, #0724D0 32%, #191042 100%); border-radius: 18px; padding: clamp(32px, 5vw, 56px); color: #fff; }
.tfb-cs .tfb-cs__cta h2 { color: #fff !important; }
.tfb-cs .tfb-cs__cta p { font-size: 17px !important; line-height: 1.7 !important; color: rgba(255,255,255,0.8) !important; margin: 0 0 26px !important; max-width: 560px; }

@media (max-width: 860px) {
	.tfb-cs__hero { grid-template-columns: 1fr; gap: 28px; }
	.tfb-cs .tfb-cs__lead { font-size: 16px !important; }
}

/* ── Download form (#tfb-gate) ────────────────────────────────────────
   Sits above the book (#tfb). Same isolation approach: ID scope + !important
   on the properties Hello Elementor / the Elementor Kit set on bare form
   elements (input, button, label, a, h2). */
#tfb-gate, #tfb-gate * { box-sizing: border-box; }
#tfb-gate { position: fixed !important; inset: 0 !important; z-index: 1000000 !important; display: flex !important; align-items: center; justify-content: center; padding: 16px; margin: 0 !important; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; color: #1B1537; text-align: left; }
#tfb-gate[hidden] { display: none !important; }
#tfb-gate .tfbg__backdrop { position: absolute; inset: 0; background: rgba(23,18,46,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
#tfb-gate .tfbg__card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); transform: translateY(18px) scale(0.97); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
#tfb-gate.is-open .tfbg__backdrop { opacity: 1; }
#tfb-gate.is-open .tfbg__card { transform: none; opacity: 1; }
#tfb-gate .tfbg__x { position: absolute !important; top: 14px; right: 14px; width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 1px solid #E5E8F6 !important; background: #fff !important; color: #575756 !important; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important; }
#tfb-gate .tfbg__x:hover { color: #0724D0 !important; border-color: #0724D0 !important; }
#tfb-gate .tfbg__head { display: flex; align-items: center; gap: 14px; margin: 0 40px 12px 0; }
#tfb-gate .tfbg__logo { height: 40px !important; width: auto !important; max-width: 110px !important; object-fit: contain; border: 1px solid #E5E8F6; border-radius: 10px; padding: 5px 8px; background: #fff; flex-shrink: 0; }
#tfb-gate .tfbg__logo[hidden] { display: none; }
#tfb-gate .tfbg__eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0724D0; }
#tfb-gate .tfbg__title { font-family: inherit !important; font-size: 21px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -0.02em !important; color: #1B1537 !important; margin: 2px 0 0 !important; padding: 0 !important; text-transform: none !important; }
#tfb-gate .tfbg__text { font-size: 14px; line-height: 1.6; color: #575756; margin: 0 0 18px; }
#tfb-gate .tfbg__field { display: block !important; margin: 0 0 12px !important; font-size: 12px !important; font-weight: 700 !important; color: #1B1537 !important; letter-spacing: 0.02em; text-transform: none !important; }
#tfb-gate .tfbg__field span { display: block; margin-bottom: 5px; }
#tfb-gate input[type="text"], #tfb-gate input[type="email"] { display: block !important; width: 100% !important; height: 46px !important; margin: 0 !important; padding: 0 14px !important; font-family: inherit !important; font-size: 15px !important; font-weight: 500 !important; color: #1B1537 !important; background: #F7F8FE !important; border: 1px solid #DCE0F2 !important; border-radius: 10px !important; box-shadow: none !important; outline: none !important; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
#tfb-gate input[type="text"]:focus, #tfb-gate input[type="email"]:focus { background: #fff !important; border-color: #0724D0 !important; box-shadow: 0 0 0 3px rgba(7,36,208,0.15) !important; }
#tfb-gate .tfbg__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#tfb-gate .tfbg__consent { display: flex !important; gap: 10px; align-items: flex-start; margin: 4px 0 14px !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.5 !important; color: #575756 !important; text-transform: none !important; cursor: pointer; }
#tfb-gate .tfbg__consent input { width: 18px !important; height: 18px !important; margin: 1px 0 0 !important; flex-shrink: 0; accent-color: #0724D0; }
#tfb-gate .tfbg__consent a { color: #0724D0 !important; text-decoration: underline !important; font-family: inherit !important; }
#tfb-gate .tfbg__msg { min-height: 0; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
#tfb-gate .tfbg__msg:empty { display: none; }
#tfb-gate .tfbg__msg.is-error { color: #b32d2e; }
#tfb-gate .tfbg__submit { -webkit-appearance: none !important; appearance: none !important; display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 50px !important; min-height: 0 !important; margin: 0 !important; padding: 0 20px !important; font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0.01em !important; text-transform: none !important; color: #fff !important; background: #0724D0 !important; border: 1px solid #0724D0 !important; border-radius: 10px !important; box-shadow: none !important; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
#tfb-gate .tfbg__submit:hover, #tfb-gate .tfbg__submit:focus-visible { background: #4162E1 !important; border-color: #4162E1 !important; box-shadow: 0 10px 24px rgba(7,36,208,0.28) !important; color: #fff !important; }
#tfb-gate .tfbg__submit[disabled] { opacity: 0.7; cursor: wait; }
#tfb-gate .tfbg__done { text-align: center; padding: 6px 0 0; }
#tfb-gate .tfbg__done[hidden] { display: none; }
#tfb-gate .tfbg__check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #E9FBEF; color: #0a8a3a; display: flex; align-items: center; justify-content: center; }
#tfb-gate .tfbg__check svg { width: 28px; height: 28px; }
#tfb-gate .tfbg__done p { font-size: 15px; line-height: 1.6; color: #1B1537; margin: 0 0 20px; }
