/* =========================================================
   Frenty ERP com IA — landing page standalone (sem WordPress)
   Paleta oficial extraída de bootstrap-frenty.scss:
   $azul: #00c1eb | $roxo: #250048
   ========================================================= */

:root {
	--roxo-900: #1a0033;
	--roxo-800: #250048;
	--roxo-700: #3a1063;
	--roxo-600: #58189a;
	--roxo-500: #6f2fc7;
	--azul: #00c1eb;
	--azul-light: #5fe4ff;
	--rosa: #f9386a;
	--verde: #25d366;
	--off-white: #f5f2fa;
	--white: #ffffff;
	--text-dark: #1f0a35;
	--text-muted: #5c4d72;
	--radius: 14px;
	--shadow: 0 15px 40px rgba(37, 0, 72, 0.12);
	--gradient-brand: linear-gradient(120deg, var(--roxo-900) 0%, var(--roxo-700) 45%, var(--roxo-500) 75%, var(--azul) 130%);
	--font-heading: 'Lato', 'Open Sans', Arial, sans-serif;
	--font-body: 'Open Sans', 'Lato', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

/* Grid/flex items default to min-width:auto, which stops them shrinking
   below their content's intrinsic size (images, long headings) and blows
   out the track even when it's set to 1fr. Reset on every item. */
.fr-hero__grid > *, .fr-split > *, .fr-header__inner > *, .fr-header__actions > *,
.fr-icon-row > *, .fr-counters > *, .fr-three-col > *, .fr-modules__grid > *,
.fr-segment-grid > *, .fr-form__row > * {
	min-width: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	color: var(--text-dark);
	background: var(--white);
	line-height: 1.6;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 900;
	line-height: 1.25;
	margin: 0 0 18px;
	color: var(--roxo-800);
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; margin-bottom: 0; }

p { margin: 0 0 16px; color: var(--text-muted); }

.fr-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.fr-center { text-align: center; }
.fr-lead { max-width: 820px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.fr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
	max-width: 100%;
	text-align: center;
}
.fr-btn:hover { transform: scale(1.05); }
.fr-btn--primary {
	background: var(--azul);
	color: var(--roxo-900);
	box-shadow: 0 10px 25px rgba(0, 193, 235, 0.35);
}
.fr-btn--primary:hover { background: var(--azul-light); }
.fr-btn--ghost {
	background: transparent;
	color: var(--white);
	border: 1.5px solid rgba(255,255,255,.5);
	padding: 10px 22px;
}
.fr-btn--ghost:hover { background: rgba(255,255,255,.12); }
.fr-btn--outline {
	background: rgba(255,255,255,.08);
	color: var(--white);
	border: 1.5px solid var(--azul);
	padding: 10px 22px;
}
.fr-btn--outline:hover { background: var(--azul); color: var(--roxo-900); }
.fr-btn--light {
	background: var(--white);
	color: var(--roxo-800);
}
.fr-btn--light:hover { background: var(--off-white); }
.fr-btn--block { width: 100%; justify-content: center; }
.fr-btn__icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.fr-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(26, 0, 51, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.fr-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.fr-logo img { height: 40px; width: auto; }
.fr-header__actions { display: flex; gap: 12px; }

/* WhatsApp floating button */
.fr-whats-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 200;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,.3);
	transition: transform .25s ease;
}
.fr-whats-float:hover { transform: scale(1.08); }
.fr-whats-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.fr-hero {
	position: relative;
	padding: 150px 0 110px;
	background: var(--gradient-brand);
	background-size: 180% 180%;
	color: var(--white);
	overflow: hidden;
}
.fr-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 40px;
}
.fr-headline {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	color: var(--white);
	margin-bottom: 20px;
}
.fr-headline__highlight {
	position: relative;
	color: var(--roxo-900);
	background: var(--azul);
	padding: 2px 18px;
	border-radius: 50px;
	display: inline-block;
}
.fr-hero__subtitle {
	font-family: var(--font-body);
	font-weight: 400;
	color: rgba(255,255,255,.92);
	font-size: 1.2rem;
	margin-bottom: 26px;
}
.fr-hero__image img {
	max-width: 420px;
	margin: 0 auto;
	filter: drop-shadow(0 25px 35px rgba(0,0,0,.35));
}

.fr-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
}
.fr-check-list li {
	position: relative;
	padding-left: 30px;
	font-weight: 700;
	color: var(--white);
}
.fr-check-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 2px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--azul);
}
.fr-check-list li::after {
	content: "";
	position: absolute;
	left: 6px; top: 6px;
	width: 8px; height: 4px;
	border-left: 2px solid var(--roxo-900);
	border-bottom: 2px solid var(--roxo-900);
	transform: rotate(-45deg);
}
.fr-check-list--dark li { color: var(--text-dark); }
.fr-check-list--dark li::after { border-color: var(--white); }

.fr-shape-divider {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	line-height: 0;
}
.fr-shape-divider svg { width: 100%; height: 90px; display: block; }
.fr-shape-divider--waves svg path { fill: var(--white); }
.fr-shape-divider--tilt svg path { fill: var(--white); }

/* ---------- Generic sections ---------- */
.fr-section { padding: 80px 0; }
.fr-section--narrow { padding: 40px 0 80px; }
.fr-section--tint { background: var(--off-white); }

.fr-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.fr-split--reverse .fr-split__content { order: 1; }
.fr-split--reverse .fr-counters { order: 2; }
.fr-split__media img { border-radius: var(--radius); margin: 0 auto; }
.fr-subheading { color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

.fr-eyebrow {
	display: inline-block;
	color: var(--azul);
	background: var(--roxo-800);
	padding: 4px 16px;
	border-radius: 50px;
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .05em;
	margin-bottom: 14px;
}

.fr-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fr-bullet-list li {
	position: relative;
	padding-left: 28px;
	color: var(--text-muted);
}
.fr-bullet-list li::before {
	content: "✓";
	position: absolute;
	left: 0; top: 0;
	color: var(--azul);
	font-weight: 900;
}
.fr-bullet-list strong { color: var(--roxo-800); }

/* icon-card row (ERP / PDV / CRM) */
.fr-icon-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 26px;
}
.fr-icon-card {
	background: var(--white);
	border: 1px solid rgba(37,0,72,.08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px 14px;
	text-align: center;
}
.fr-icon-card h3 { color: var(--azul); margin-bottom: 6px; font-size: 1.3rem; }
.fr-icon-card p { margin: 0; font-size: .85rem; color: var(--text-muted); }

/* counters */
.fr-counters {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.fr-counter {
	text-align: center;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px 12px;
}
.fr-counter__number {
	display: block;
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 2.4rem;
	color: var(--roxo-800);
	background: linear-gradient(120deg, var(--roxo-700), var(--azul));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.fr-counter__label {
	display: block;
	margin-top: 6px;
	font-size: .9rem;
	color: var(--text-muted);
	font-weight: 600;
}

/* segments grid */
.fr-segment-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 34px;
}
.fr-segment-card {
	background: var(--off-white);
	border-radius: var(--radius);
	padding: 26px 18px;
	text-align: center;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--roxo-800);
	border: 1px solid rgba(37,0,72,.08);
	transition: transform .25s ease, background .25s ease, color .25s ease;
}
.fr-segment-card:hover {
	background: var(--gradient-brand);
	color: var(--white);
	transform: translateY(-4px);
}

/* modules grid */
.fr-modules {
	background: var(--gradient-brand);
	padding: 60px 0 80px;
}
.fr-modules__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.fr-module-card {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(6px);
	border-radius: var(--radius);
	padding: 28px 24px;
	transition: transform .25s ease, background .25s ease;
}
.fr-module-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.fr-module-card h3 { color: var(--azul); margin-bottom: 12px; }
.fr-module-card p { color: rgba(255,255,255,.85); margin: 0; }
.fr-module-card p b { color: var(--white); }

/* three-col headings */
.fr-three-col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 30px 0;
}
.fr-three-col h4 {
	background: var(--off-white);
	border-left: 4px solid var(--azul);
	border-radius: 8px;
	padding: 16px 18px;
	color: var(--roxo-800);
}
.fr-three-col--left { text-align: left; }

/* video */
.fr-video {
	position: relative;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.fr-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fr-video__play::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(26,0,51,.25);
}
.fr-video__play svg {
	position: relative;
	width: 86px;
	height: 86px;
	fill: var(--white);
	background: rgba(0,193,235,.9);
	border-radius: 50%;
	padding: 22px;
	transition: transform .25s ease;
}
.fr-video:hover .fr-video__play svg { transform: scale(1.08); }

/* form CTA */
.fr-form-cta {
	position: relative;
	background: url(../img/bg-pattern.png), var(--roxo-800);
	color: var(--white);
	padding: 80px 0 120px;
	text-align: center;
}
.fr-form-cta h2 { color: var(--white); max-width: 780px; margin: 0 auto 34px; }
.fr-form {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fr-form input {
	width: 100%;
	padding: 14px 18px;
	border-radius: 10px;
	border: none;
	font-family: var(--font-body);
	font-size: .95rem;
	background: rgba(255,255,255,.94);
	color: var(--text-dark);
}
.fr-form input:focus { outline: 3px solid var(--azul); }

/* final CTA */
.fr-final-cta {
	background: var(--gradient-brand);
	color: var(--white);
	padding: 90px 0;
}
.fr-final-cta h2 { color: var(--white); }
.fr-final-cta p { color: rgba(255,255,255,.9); max-width: 700px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.fr-footer {
	background: var(--roxo-900);
	color: rgba(255,255,255,.85);
	padding: 60px 0 0;
}
.fr-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.fr-footer__col h3 { color: var(--white); font-size: 1.2rem; }
.fr-social { display: flex; gap: 14px; margin-top: 18px; }
.fr-social a {
	width: 42px; height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center;
	transition: transform .25s ease, background .25s ease;
}
.fr-social a:hover { background: var(--azul); transform: scale(1.08); }
.fr-social svg { width: 18px; height: 18px; fill: var(--white); }
.fr-footer__col p { color: rgba(255,255,255,.7); margin-top: 16px; }
.fr-footer__bottom {
	text-align: center;
	padding: 22px 0;
	font-size: .85rem;
	color: rgba(255,255,255,.55);
}
.fr-footer__bottom a { color: rgba(255,255,255,.75); text-decoration: none; }
.fr-footer__bottom a:hover { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.fr-hero { padding: 130px 0 90px; }
	.fr-modules__grid { grid-template-columns: repeat(2, 1fr); }
	.fr-segment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.fr-split, .fr-split--reverse .fr-split__content, .fr-split--reverse .fr-counters {
		order: initial;
	}
	.fr-split { grid-template-columns: 1fr; gap: 34px; }
	.fr-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.fr-hero__image { order: -1; }
	.fr-check-list { justify-content: center; }
	.fr-icon-row, .fr-counters, .fr-three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.fr-header__inner { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding: 12px 16px; }
	.fr-header__actions { flex-wrap: wrap; justify-content: center; }
	.fr-header__actions .fr-btn { padding: 8px 14px; font-size: .8rem; }
	.fr-hero { padding: 130px 0 80px; }
	.fr-check-list { flex-direction: column; align-items: center; gap: 12px; }
	.fr-icon-row, .fr-counters, .fr-three-col, .fr-modules__grid, .fr-segment-grid, .fr-form__row {
		grid-template-columns: 1fr;
	}
	.fr-whats-float { width: 58px; height: 58px; right: 16px; bottom: 16px; }
	.fr-footer__grid { grid-template-columns: 1fr; }
}
